From 21f52aeeba2e8462c609006317251417ad9f3db3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 23 Aug 2014 11:39:07 +0200 Subject: audio: minor improvements to timeline switching In theory, timestamps can be negative, so we shouldn't just return -1 as special value. Remove the separate code for clearing decode buffers; use the same code that is used for normal seek reset. --- player/loadfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/loadfile.c') diff --git a/player/loadfile.c b/player/loadfile.c index f3861e25eb..3833a80231 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -391,7 +391,7 @@ double timeline_set_from_time(struct MPContext *mpctx, double pts, bool *need_re return pts - p->start + p->source_start; } } - return -1; + return MP_NOPTS_VALUE; } static int find_new_tid(struct MPContext *mpctx, enum stream_type t) -- cgit v1.2.3