summaryrefslogtreecommitdiffstats
path: root/player/main.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-27 22:28:07 +0200
committerwm4 <wm4@nowhere>2014-04-27 22:28:07 +0200
commite8a996cedef347f9a4cee1172db39e7f0eea821f (patch)
tree6e764a5fe26b62e2af6ce6fc62a39d828ec9f713 /player/main.c
parentb20416abe3f7e15d27a9828c12171e65f6e62d9c (diff)
downloadmpv-e8a996cedef347f9a4cee1172db39e7f0eea821f.tar.bz2
mpv-e8a996cedef347f9a4cee1172db39e7f0eea821f.tar.xz
client API: add chapter change event
Also works for mpv_observe_property() on the "chapter" property.
Diffstat (limited to 'player/main.c')
-rw-r--r--player/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c
index 3522e12b0e..101f9fe196 100644
--- a/player/main.c
+++ b/player/main.c
@@ -310,6 +310,7 @@ struct MPContext *mp_create(void)
struct MPContext *mpctx = talloc(NULL, MPContext);
*mpctx = (struct MPContext){
.last_dvb_step = 1,
+ .last_chapter = -2,
.term_osd_contents = talloc_strdup(mpctx, ""),
.osd_progbar = { .type = -1 },
.playlist = talloc_struct(mpctx, struct playlist, {0}),