path: root/audio/reorder_ch.c
diff options
authorwm4 <wm4@nowhere>2013-11-23 22:28:39 +0100
committerwm4 <wm4@nowhere>2013-11-23 22:28:39 +0100
commit5a3e01fa80b2b129fe55d82247c12e6609cc052c (patch)
tree0f56ca59c75f0a123b3b2dec86d156b1671e9dc4 /audio/reorder_ch.c
parentf99aff1b31a7b23e7761a6da4fc4550d698e06fe (diff)
vd_lavc: when falling back to software, revert filter error status
When mpv is started with some video filters set (--vf is used), and hardware decoding is requested, and hardware decoding would be possible, but is prevented due to video filters that accept software formats only, the fallback didn't work properly sometimes. This fallback works rather violently: it tries to initialize the filter chain, and if it fails it throws away the frame decoded using the hardware, and retries with software. The case that didn't work was when decoding the current packet didn't immediately lead to a new frame. Then the filter chain wouldn't be reinitialized, and the playloop would stop playback as soon as it encounters the error flag. Fix this by resetting the filter error flag (back to "uninitialized"), which is a rather violent, but somewhat working solution. The fallback in general should perhaps be cleaned up later.
Diffstat (limited to 'audio/reorder_ch.c')
0 files changed, 0 insertions, 0 deletions