diff options
author | wm4 <wm4@nowhere> | 2014-08-23 11:39:07 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-23 11:39:07 +0200 |
commit | 21f52aeeba2e8462c609006317251417ad9f3db3 (patch) | |
tree | c9f8a2a5258c80475a834ceab5a8c4656c820495 /player/loadfile.c | |
parent | b55e09307581e45746f11a2eab2409a389c79012 (diff) | |
download | mpv-21f52aeeba2e8462c609006317251417ad9f3db3.tar.bz2 mpv-21f52aeeba2e8462c609006317251417ad9f3db3.tar.xz |
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.
Diffstat (limited to 'player/loadfile.c')
-rw-r--r-- | player/loadfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |