diff options
author | wm4 <wm4@nowhere> | 2019-11-02 22:38:08 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-11-02 22:38:08 +0100 |
commit | 7bf31c51f2bd5b0d95b12a503be47e930419cae9 (patch) | |
tree | a4ca17fb51ba6af4a4fe47918e72de27ad134cbe /video/decode | |
parent | 1bb726dedce9ab0cd096bd524e869cf1899697cf (diff) | |
download | mpv-7bf31c51f2bd5b0d95b12a503be47e930419cae9.tar.bz2 mpv-7bf31c51f2bd5b0d95b12a503be47e930419cae9.tar.xz |
vd_lavc: mention hw decoding if decoding fails in hwdec mode
Just so the user knows. Provides some context.
Diffstat (limited to 'video/decode')
-rw-r--r-- | video/decode/vd_lavc.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |