summaryrefslogtreecommitdiffstats
path: root/video/zimg.c
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2022-04-11 21:36:51 +0300
committerJan Ekström <jeebjp@gmail.com>2022-04-11 23:54:22 +0300
commit1a597ea98744a92cd29e636ea440edd95ef7a142 (patch)
tree3128998b7b91814bf5b427258dd90fed54c39284 /video/zimg.c
parenteddc0bfe25bfea9202d43189f5c2447db5a5b9f0 (diff)
downloadmpv-1a597ea98744a92cd29e636ea440edd95ef7a142.tar.bz2
mpv-1a597ea98744a92cd29e636ea440edd95ef7a142.tar.xz
vd_lavc: fix decoder initialization when no VO is available
The VO is available during decoder initialization mostly for direct rendering purposes, so if f.ex. a complex filter chain is utilized, there is no video renderer information available via mp_filter_find_stream_info during creation of the decoder filter. Thus, check for whether the VO is available before attempting to check the capabilities flag from it. Additionally - to simplify logic - makes explicitly requesting GPU film grain to always disable decoder film grain functionality. The warning is still shown if the VO is available and no support for film grain application is available. Fixes #10079
Diffstat (limited to 'video/zimg.c')
0 files changed, 0 insertions, 0 deletions