summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-01-11 11:02:23 +0100
committerwm4 <wm4@nowhere>2019-09-19 20:37:04 +0200
commit7498fa0b3d50d9a8b0f63568b5c5dd88795b596d (patch)
treea934cee6ab4e0d07683dd8a5e3a54cdb80d39f2a /demux
parent2bf1862bc1d53b7aa60a229c4a8ae0d00df4b5c8 (diff)
downloadmpv-7498fa0b3d50d9a8b0f63568b5c5dd88795b596d.tar.bz2
mpv-7498fa0b3d50d9a8b0f63568b5c5dd88795b596d.tar.xz
video: fix player not exiting if no video frame was rendered
E.g. "mpv null:// --demuxer=rawvideo" will "hang" by waiting for video EOF forever. It's not signalled correctly because of the last-frame corner case, which attempts to wait until the current frame is finally displayed (which is signalled by whether a new frame can be queued, see commit 1a339fa09d for some details). If no frame was ever queued, the VO is not configured, and vo_is_ready_for_frame() never returns true. Fix this by using vo_has_frame(), which seems to be exactly the correct thing we need.
Diffstat (limited to 'demux')
0 files changed, 0 insertions, 0 deletions