1
mirror of https://github.com/mpv-player/mpv synced 2024-11-07 01:47:00 +01:00

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.)
This commit is contained in:
wm4 2014-11-29 01:03:37 +01:00
parent 87f5ba6ab3
commit a399339b95

View File

@ -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: