From fa155dece604627b76c45e18501dfecba3e6ab88 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 20 Nov 2016 19:40:25 +0000 Subject: Fix thinko; just because a seek has just happened, it doesn't mean another one isn't necessary. --- src/lib/decoder.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/lib/decoder.cc') diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc index 988b8fe9b..b7bd78c14 100644 --- a/src/lib/decoder.cc +++ b/src/lib/decoder.cc @@ -27,12 +27,7 @@ using boost::optional; void Decoder::maybe_seek (optional& position, ContentTime time, bool accurate) { - if (!position) { - /* A seek has just happened */ - return; - } - - if (time >= *position && time < (*position + ContentTime::from_seconds(1))) { + if (position && (time >= *position && time < (*position + ContentTime::from_seconds(1)))) { /* No need to seek: caller should just pass() */ return; } -- cgit v1.2.3