summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-04-22 19:30:25 +0200
committerDiego Biurrun <diego@biurrun.de>2011-04-22 20:12:27 +0200
commit44f566b79afcbbb152ec21db667ea3d2f42e8f8d (patch)
tree8a6598f23292ca79f4596f5683436d54c60e8044 /libavcodec/utils.c
parentb2832c3904211f2e95f49059d15b94dfab55964a (diff)
Make av_log_ask_for_sample() accept a variable number of arguments.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 744e0ada87..d60e236952 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1133,13 +1133,19 @@ void av_log_missing_feature(void *avc, const char *feature, int want_sample)
av_log(avc, AV_LOG_WARNING, "\n");
}
-void av_log_ask_for_sample(void *avc, const char *msg)
+void av_log_ask_for_sample(void *avc, const char *msg, ...)
{
+ va_list argument_list;
+
+ va_start(argument_list, msg);
+
if (msg)
- av_log(avc, AV_LOG_WARNING, "%s ", msg);
+ av_vlog(avc, AV_LOG_WARNING, msg, argument_list);
av_log(avc, AV_LOG_WARNING, "If you want to help, upload a sample "
"of this file to ftp://upload.libav.org/incoming/ "
"and contact the libav-devel mailing list.\n");
+
+ va_end(argument_list);
}
static AVHWAccel *first_hwaccel = NULL;