summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-29 01:03:37 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-01-25 17:00:11 +0900
commit62c7a372ec90319d9b60fd9e8b3a39fe9a594a5c (patch)
treeecd79b63064eb0c18c70647f28fe1b4e623473c7
parent0692da30077b162dd86049ff3f802137e9952937 (diff)
downloadmpv-62c7a372ec90319d9b60fd9e8b3a39fe9a594a5c.tar.bz2
mpv-62c7a372ec90319d9b60fd9e8b3a39fe9a594a5c.tar.xz
player: don't ignore relative seeks by 0 seconds
I don't know why this done; most likely it had no real reason. Remove it because it breaks "refresh seeks" to the same position. (Although the refresh seeks mpv sometimes does were fine.)
-rw-r--r--player/playloop.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/player/playloop.c b/player/playloop.c
index 5d60088f7d..13498502b6 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -311,10 +311,6 @@ void queue_seek(struct MPContext *mpctx, enum seek_type type, double amount,
seek->exact = exact;
if (seek->type == MPSEEK_ABSOLUTE)
return;
- if (seek->amount == 0) {
- *seek = (struct seek_params){ 0 };
- return;
- }
seek->type = MPSEEK_RELATIVE;
return;
case MPSEEK_ABSOLUTE: