mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
vo: fix video EOF with display-sync
We must not use the frame PTS in any case. In this case, it fails because nothing sets it up to wake up. This typically caused the player to apparently "pause", until something else waked it up, like moving the mouse and other events.
This commit is contained in:
parent
b103a8e113
commit
c7329e5118
@ -930,8 +930,8 @@ bool vo_still_displaying(struct vo *vo)
|
||||
int64_t frame_end = 0;
|
||||
if (in->current_frame) {
|
||||
frame_end = in->current_frame->pts + MPMAX(in->current_frame->duration, 0);
|
||||
if (in->current_frame->num_vsyncs > 0)
|
||||
frame_end = INT64_MAX;
|
||||
if (in->current_frame->display_synced)
|
||||
frame_end = in->current_frame->num_vsyncs > 0 ? INT64_MAX : 0;
|
||||
}
|
||||
bool working = now < frame_end || in->rendering || in->frame_queued;
|
||||
pthread_mutex_unlock(&vo->in->lock);
|
||||
|
Loading…
Reference in New Issue
Block a user