Browse Source

log: pass the correct parameters to missing_feature_sample

CC:libav-stable@libav.org
tags/n2.0
Luca Barbato 12 years ago
parent
commit
0420c810ce
1 changed files with 2 additions and 7 deletions
  1. +2
    -7
      libavutil/log.c

+ 2
- 7
libavutil/log.c View File

@@ -182,12 +182,9 @@ void av_log_set_callback(void (*callback)(void*, int, const char*, va_list))
av_log_callback = callback; av_log_callback = callback;
} }


static void missing_feature_sample(int sample, void *avc, const char *msg, ...)
static void missing_feature_sample(int sample, void *avc, const char *msg,
va_list argument_list)
{ {
va_list argument_list;

va_start(argument_list, msg);

av_vlog(avc, AV_LOG_WARNING, msg, argument_list); av_vlog(avc, AV_LOG_WARNING, msg, argument_list);
av_log(avc, AV_LOG_WARNING, " is not implemented. Update your Libav " av_log(avc, AV_LOG_WARNING, " is not implemented. Update your Libav "
"version to the newest one from Git. If the problem still " "version to the newest one from Git. If the problem still "
@@ -197,8 +194,6 @@ static void missing_feature_sample(int sample, void *avc, const char *msg, ...)
av_log(avc, AV_LOG_WARNING, "If you want to help, upload a sample " av_log(avc, AV_LOG_WARNING, "If you want to help, upload a sample "
"of this file to ftp://upload.libav.org/incoming/ " "of this file to ftp://upload.libav.org/incoming/ "
"and contact the libav-devel mailing list.\n"); "and contact the libav-devel mailing list.\n");

va_end(argument_list);
} }


void avpriv_request_sample(void *avc, const char *msg, ...) void avpriv_request_sample(void *avc, const char *msg, ...)


Loading…
Cancel
Save