Commit f8d0ebe9 authored by Max Kellermann's avatar Max Kellermann

PlayerThread: check if total_time is valid before using it

parent ba6ba7d4
...@@ -562,7 +562,7 @@ Player::SeekDecoder() ...@@ -562,7 +562,7 @@ Player::SeekDecoder()
/* send the SEEK command */ /* send the SEEK command */
double where = pc.seek_where; 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; where = pc.total_time - 0.1;
if (where < 0.0) if (where < 0.0)
where = 0.0; where = 0.0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment