summaryrefslogtreecommitdiffstats
path: root/player/command.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-12-24 01:56:09 +0100
committerMartin Herkt <652892+lachs0r@users.noreply.github.com>2017-12-24 21:49:12 +0100
commit29af78721760e426b920904d44566de482e30709 (patch)
treef54d704d537c065d2bc72ed92ed2e3281d6afed5 /player/command.h
parentc12d897a3a79fbe4531988a3853b67a5e6042668 (diff)
downloadmpv-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 'player/command.h')
-rw-r--r--player/command.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/command.h b/player/command.h
index 0ab746b1d2..478bc8c737 100644
--- a/player/command.h
+++ b/player/command.h
@@ -57,6 +57,7 @@ enum {
MP_EVENT_WIN_STATE,
MP_EVENT_CHANGE_PLAYLIST,
MP_EVENT_CORE_IDLE,
+ MP_EVENT_DURATION_UPDATE,
};
bool mp_hook_test_completion(struct MPContext *mpctx, char *type);