From a399339b95501b6bfa93d30aff5128fe627e97fd Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 29 Nov 2014 01:03:37 +0100 Subject: [PATCH] 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.) --- player/playloop.c | 4 ---- 1 file changed, 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: