From 29af78721760e426b920904d44566de482e30709 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 24 Dec 2017 01:56:09 +0100 Subject: 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. --- player/command.h | 1 + 1 file changed, 1 insertion(+) (limited to 'player/command.h') 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); -- cgit v1.2.3