player: fix start position when specifying with percent

This commit is contained in:
Tsukasa OMOTO
2014-06-29 20:39:49 +02:00
committed by wm4
parent 1aef780b6c
commit 1646584058
+1 -1
View File
@@ -67,7 +67,7 @@ double rel_time_to_abs(struct MPContext *mpctx, struct m_rel_time t)
break;
case REL_TIME_PERCENT:
if (length != 0)
return length * (t.pos / 100.0);
return start + length * (t.pos / 100.0);
break;
case REL_TIME_CHAPTER:
if (chapter_start_time(mpctx, t.pos) != MP_NOPTS_VALUE)