mirror of https://github.com/mpv-player/mpv
vo: fix dropping frames with display-sync
I guess the removed code is an old leftover, and makes no sense anymore. Should fix weird A/V diff dropouts when frames are being dropped with display-sync.
This commit is contained in:
parent
a790009a63
commit
cf3b34f17a
|
@ -1049,8 +1049,6 @@ double vo_get_delay(struct vo *vo)
|
|||
res += (in->current_frame->num_vsyncs + extra) * in->vsync_interval;
|
||||
if (!in->current_frame->display_synced)
|
||||
res = 0;
|
||||
if (in->current_frame->num_vsyncs < 1 && !in->rendering)
|
||||
res = 0;
|
||||
}
|
||||
pthread_mutex_unlock(&in->lock);
|
||||
return res ? (res - mp_time_us()) / 1e6 : 0;
|
||||
|
|
Loading…
Reference in New Issue