From e8a996cedef347f9a4cee1172db39e7f0eea821f Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 27 Apr 2014 22:28:07 +0200 Subject: client API: add chapter change event Also works for mpv_observe_property() on the "chapter" property. --- player/core.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player/core.h') diff --git a/player/core.h b/player/core.h index a360be4aa8..bd5f174075 100644 --- a/player/core.h +++ b/player/core.h @@ -276,6 +276,8 @@ typedef struct MPContext { // Video PTS, or audio PTS if video has ended. double playback_pts; + int last_chapter; + // History of video frames timestamps that were queued in the VO // This includes even skipped frames during hr-seek double vo_pts_history_pts[MAX_NUM_VO_PTS]; -- cgit v1.2.3