1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-06 07:00:30 +00:00

vd_lavc: mention hw decoding if decoding fails in hwdec mode

Just so the user knows. Provides some context.
This commit is contained in:
wm4 2019-11-02 22:38:08 +01:00
parent 1bb726dedc
commit 7bf31c51f2

View File

@ -959,7 +959,8 @@ static void handle_err(struct mp_filter *vd)
vd_ffmpeg_ctx *ctx = vd->priv;
struct vd_lavc_params *opts = ctx->opts;
MP_WARN(vd, "Error while decoding frame!\n");
MP_WARN(vd, "Error while decoding frame%s!\n",
ctx->use_hwdec ? " (hardware decoding)" : "");
if (ctx->use_hwdec) {
ctx->hwdec_fail_count += 1;