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:
parent
87f5ba6ab3
commit
a399339b95
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user