mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
vd_lavc: log if hw decoding selects a different underlying decoder
Less confusing to see what's going on. I think there were more than one users who got tricked by this, including myself.
This commit is contained in:
@@ -417,11 +417,14 @@ static void reinit(struct dec_video *vd)
|
||||
}
|
||||
|
||||
if (hwdec) {
|
||||
const char *orig_decoder = decoder;
|
||||
if (hwdec->get_codec)
|
||||
decoder = hwdec->get_codec(ctx, decoder);
|
||||
if (hwdec->lavc_suffix)
|
||||
decoder = hwdec_find_decoder(codec, hwdec->lavc_suffix);
|
||||
MP_VERBOSE(vd, "Trying hardware decoding.\n");
|
||||
if (strcmp(orig_decoder, decoder) != 0)
|
||||
MP_VERBOSE(vd, "Using underlying hw-decoder '%s'\n", decoder);
|
||||
} else {
|
||||
MP_VERBOSE(vd, "Using software decoding.\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user