aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlayerThread.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/PlayerThread.cxx')
-rw-r--r--src/PlayerThread.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx
index 1850a1711..00f8007a1 100644
--- a/src/PlayerThread.cxx
+++ b/src/PlayerThread.cxx
@@ -562,7 +562,7 @@ Player::SeekDecoder()
/* send the SEEK command */
double where = pc.seek_where;
- if (where > pc.total_time)
+ if (pc.total_time > 0 && where > pc.total_time)
where = pc.total_time - 0.1;
if (where < 0.0)
where = 0.0;