summaryrefslogtreecommitdiff
path: root/src/lib/decoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/decoder.cc')
-rw-r--r--src/lib/decoder.cc7
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;
}