From 2b4123f07857425d2fd77b7f339f12812eceec29 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 22 Apr 2016 09:31:11 +0200 Subject: player: fix OSD bar chapter marks Truly dumb bug introduced with the previous commit. --- player/osd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') diff --git a/player/osd.c b/player/osd.c index 810df73719..3a549c070e 100644 --- a/player/osd.c +++ b/player/osd.c @@ -370,7 +370,7 @@ void set_osd_bar_chapters(struct MPContext *mpctx, int type) MP_TARRAY_APPEND(mpctx, mpctx->osd_progbar.stops, mpctx->osd_progbar.num_stops, opts->ab_loop[1] / len); } - if (mpctx->osd_progbar.stops == 0) { + if (mpctx->osd_progbar.num_stops == 0) { int num = get_chapter_count(mpctx); for (int n = 0; n < num; n++) { double time = chapter_start_time(mpctx, n); -- cgit v1.2.3