From 71b6a5229562aff8d26d2b40ed0bf77d09beb80c Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Dec 2013 18:43:45 +0100 Subject: av_common: abuse av_log to print message instead of mp_msg Saves a little bit of pain. --- common/av_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 #include +#include #include #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; } -- cgit v1.2.3