From 7bf31c51f2bd5b0d95b12a503be47e930419cae9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 2 Nov 2019 22:38:08 +0100 Subject: [PATCH] vd_lavc: mention hw decoding if decoding fails in hwdec mode Just so the user knows. Provides some context. --- video/decode/vd_lavc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 014b81b3b1..58cdc01cdb 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -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;