diff options
author | wm4 <wm4@nowhere> | 2013-12-21 18:43:45 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-21 20:50:12 +0100 |
commit | 71b6a5229562aff8d26d2b40ed0bf77d09beb80c (patch) | |
tree | 5a7b591c09fe9602626578a6c27c16e3c9757995 /common | |
parent | 138d183d83b4ef58aa1d62203b27a5df9792e93b (diff) | |
download | mpv-71b6a5229562aff8d26d2b40ed0bf77d09beb80c.tar.bz2 mpv-71b6a5229562aff8d26d2b40ed0bf77d09beb80c.tar.xz |
av_common: abuse av_log to print message instead of mp_msg
Saves a little bit of pain.
Diffstat (limited to 'common')
-rw-r--r-- | common/av_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/av_common.c b/common/av_common.c index cccb0f755e..9c41c03251 100644 --- a/common/av_common.c +++ b/common/av_common.c @@ -18,6 +18,7 @@ #include <assert.h> #include <libavutil/common.h> +#include <libavutil/log.h> #include <libavcodec/avcodec.h> #include "common/common.h" @@ -122,7 +123,7 @@ void mp_set_avcodec_threads(AVCodecContext *avctx, int threads) if (threads == 0) { threads = default_thread_count(); if (threads < 1) { - mp_msg(MSGT_GLOBAL, MSGL_WARN, "Could not determine " + av_log(avctx, AV_LOG_WARNING, "Could not determine " "thread count to use, defaulting to 1.\n"); threads = 1; } |