summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-29 01:03:37 +0100
committerwm4 <wm4@nowhere>2014-11-29 01:03:37 +0100
commita399339b95501b6bfa93d30aff5128fe627e97fd (patch)
treeb9929d65629c159a382f2097fa91f52e045a6838 /player
parent87f5ba6ab3eb468d54f16a628a06bd5a01bb222c (diff)
downloadmpv-a399339b95501b6bfa93d30aff5128fe627e97fd.tar.bz2
mpv-a399339b95501b6bfa93d30aff5128fe627e97fd.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.)
Diffstat (limited to 'player')
-rw-r--r--player/playloop.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/player/playloop.c b/player/playloop.c
index 21c8eff50a..e20e088e00 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: