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:
wm4 2015-11-14 21:45:27 +01:00
parent a790009a63
commit cf3b34f17a
1 changed files with 0 additions and 2 deletions

View File

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