diff options
author | wm4 <wm4@nowhere> | 2014-10-09 17:57:17 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-09 17:57:17 +0200 |
commit | bc6b8caa6d461a1c536f435d5b76cda903ae4f4a (patch) | |
tree | a6ef2c2319416738d0a45e6696a95e102e6e3070 /common/common.h | |
parent | 69673271e8dcb68377a15808fd4cb199b48cf4fa (diff) | |
download | mpv-bc6b8caa6d461a1c536f435d5b76cda903ae4f4a.tar.bz2 mpv-bc6b8caa6d461a1c536f435d5b76cda903ae4f4a.tar.xz |
video: try harder to decode cover art picture only once
For cover art, we pretend that the video stream is infinite, but also
stop decoding once we have an image on the VO (this seems advantageous
for the case when strange filters are inserted or the VO image gets
lost). Since a while ago, the video chain started decoding 2 images
though ("Non-monotonic video pts: 0.000000 <= 0.000000"), which is
annoying and wasteful.
Improve this by handling a certain corner case at initialization, which
will decode a second image while the first one is still stuck in the
filter chain. Also, just in case there are filters which buffer a lot,
also force EOF filtering (which means we tell the filters to flush
buffered frames).
CC: @mpv-player/stable
Diffstat (limited to 'common/common.h')
0 files changed, 0 insertions, 0 deletions