mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
av_common: abuse av_log to print message instead of mp_msg
Saves a little bit of pain.
This commit is contained in:
parent
138d183d83
commit
71b6a52295
@ -18,6 +18,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include <libavutil/common.h>
|
#include <libavutil/common.h>
|
||||||
|
#include <libavutil/log.h>
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
|
|
||||||
#include "common/common.h"
|
#include "common/common.h"
|
||||||
@ -122,7 +123,7 @@ void mp_set_avcodec_threads(AVCodecContext *avctx, int threads)
|
|||||||
if (threads == 0) {
|
if (threads == 0) {
|
||||||
threads = default_thread_count();
|
threads = default_thread_count();
|
||||||
if (threads < 1) {
|
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");
|
"thread count to use, defaulting to 1.\n");
|
||||||
threads = 1;
|
threads = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user