summaryrefslogtreecommitdiffstats
path: root/player/misc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-25 02:18:12 +0100
committerwm4 <wm4@nowhere>2014-03-25 02:18:12 +0100
commitc19c777061531d4831f93ddc34490e6537448c19 (patch)
tree8942fd90d92e5531b620db4ea0aef93ce5970f52 /player/misc.c
parent5cae4a807ca3d3c04932490f0b6f72ce1bf57a53 (diff)
downloadmpv-c19c777061531d4831f93ddc34490e6537448c19.tar.bz2
mpv-c19c777061531d4831f93ddc34490e6537448c19.tar.xz
player: let chapter_start_time() return MP_NOPTS_VALUE for unknown times
Diffstat (limited to 'player/misc.c')
-rw-r--r--player/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/misc.c b/player/misc.c
index 700def3ae4..1bfca9df92 100644
--- a/player/misc.c
+++ b/player/misc.c
@@ -66,7 +66,7 @@ double rel_time_to_abs(struct MPContext *mpctx, struct m_rel_time t,
return length * (t.pos / 100.0);
break;
case REL_TIME_CHAPTER:
- if (chapter_start_time(mpctx, t.pos) >= 0)
+ if (chapter_start_time(mpctx, t.pos) != MP_NOPTS_VALUE)
return chapter_start_time(mpctx, t.pos);
break;
}