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
1 changed files with 2 additions and 1 deletions

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;