player: print used number of threads in verbose mode

Also, don't use av_log() for mpv output.
This commit is contained in:
wm4
2015-01-05 12:17:55 +01:00
parent 862a1b6e7e
commit 0f4bf347c5
4 changed files with 8 additions and 6 deletions

View File

@@ -136,7 +136,7 @@ static int init(struct dec_audio *da, const char *decoder)
if (sh->lav_headers)
mp_copy_lav_codec_headers(lavc_context, sh->lav_headers);
mp_set_avcodec_threads(lavc_context, opts->threads);
mp_set_avcodec_threads(da->log, lavc_context, opts->threads);
/* open it */
if (avcodec_open2(lavc_context, lavc_codec, NULL) < 0) {