diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-11-20 19:40:25 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-11-20 19:40:25 +0000 |
| commit | fa155dece604627b76c45e18501dfecba3e6ab88 (patch) | |
| tree | 0a0f2ed42be7b466b6bc4cc33d689717305bfd10 /src/lib/decoder.cc | |
| parent | 9981fe99124d50239c90d26ed9251a7eaf4f21d9 (diff) | |
Fix thinko; just because a seek has just happened, it doesn't mean another one isn't necessary.
Diffstat (limited to 'src/lib/decoder.cc')
| -rw-r--r-- | src/lib/decoder.cc | 7 |
1 files changed, 1 insertions, 6 deletions
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<ContentTime>& 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; } |
