diff options
author | wm4 <wm4@nowhere> | 2017-12-24 01:56:09 +0100 |
---|---|---|
committer | Martin Herkt <652892+lachs0r@users.noreply.github.com> | 2017-12-24 21:49:12 +0100 |
commit | 29af78721760e426b920904d44566de482e30709 (patch) | |
tree | f54d704d537c065d2bc72ed92ed2e3281d6afed5 /demux/demux.h | |
parent | c12d897a3a79fbe4531988a3853b67a5e6042668 (diff) | |
download | mpv-29af78721760e426b920904d44566de482e30709.tar.bz2 mpv-29af78721760e426b920904d44566de482e30709.tar.xz |
player: update duration based on highest timestamp demuxed
This will help with things like livestreams.
As a minor detail, subtitles are excluded, because they sometimes have
"unused" events after video and audio ends. To avoid this annoying
corner case, just ignore them.
Diffstat (limited to 'demux/demux.h')
-rw-r--r-- | demux/demux.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux.h b/demux/demux.h index ab8edb7aa0..85bd5fd626 100644 --- a/demux/demux.h +++ b/demux/demux.h @@ -91,6 +91,7 @@ enum demux_event { DEMUX_EVENT_INIT = 1 << 0, // complete (re-)initialization DEMUX_EVENT_STREAMS = 1 << 1, // a stream was added DEMUX_EVENT_METADATA = 1 << 2, // metadata or stream_metadata changed + DEMUX_EVENT_DURATION = 1 << 3, // duration updated DEMUX_EVENT_ALL = 0xFFFF, }; |