player: fix OSD bar chapter marks

Truly dumb bug introduced with the previous commit.
This commit is contained in:
wm4 2016-04-22 09:31:11 +02:00
parent 1944a34c23
commit 2b4123f078
1 changed files with 1 additions and 1 deletions

View File

@ -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);