diff options
author | Philip Langdale <philipl@overt.org> | 2022-03-20 12:31:38 -0700 |
---|---|---|
committer | Philip Langdale <github.philipl@overt.org> | 2022-03-21 09:53:37 -0700 |
commit | fcc81cd940dc721773a91301c60755aa11010a86 (patch) | |
tree | 5c2579f59ca337fc91e3ccec0b0ec542933ad21d /filters/filter.c | |
parent | f871294204529374dd3056f7b616381400233036 (diff) | |
download | mpv-fcc81cd940dc721773a91301c60755aa11010a86.tar.bz2 mpv-fcc81cd940dc721773a91301c60755aa11010a86.tar.xz |
vo_gpu[_next]: hwdec: fix logging regression when probing
When I introduced the concept of lazy loading of hwdecs by img format,
I did not propagate the probing flag correctly, leading to the new
normal loading path not runnng with probing set, meaning that any
errors would show up, creating unnecessary noise.
This change fixes this regression.
Diffstat (limited to 'filters/filter.c')
-rw-r--r-- | filters/filter.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/filters/filter.c b/filters/filter.c index 7720eb9fd3..d52c46c185 100644 --- a/filters/filter.c +++ b/filters/filter.c @@ -704,7 +704,11 @@ struct AVBufferRef *mp_filter_load_hwdec_device(struct mp_filter *f, int avtype) "Unrecognised HW Device type requested. Loading all devices\n"); } - hwdec_devices_request_for_img_fmt(info->hwdec_devs, imgfmt); + struct hwdec_imgfmt_request params = { + .imgfmt = imgfmt, + .probing = false, + }; + hwdec_devices_request_for_img_fmt(info->hwdec_devs, ¶ms); return hwdec_devices_get_lavc(info->hwdec_devs, avtype); } |