Skip to content

Commit

Permalink
x11: allow display sync modes to report no visibility
Browse files Browse the repository at this point in the history
When this was originally implemented, I lazily skipped the optimization
when using display sync because mpv would rip through all the frames
without waiting since there was no blocking. With the previous commits,
we now fall back on the audio sync logic when the window is not visible,
so the extra condition can be removed.
  • Loading branch information
Dudemanguy committed Dec 21, 2024
1 parent 9a5419b commit 7715172
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions video/out/x11_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -2071,10 +2071,7 @@ bool vo_x11_check_visible(struct vo *vo)
{
struct vo_x11_state *x11 = vo->x11;
struct mp_vo_opts *opts = x11->opts;

bool render = !x11->hidden || opts->force_render ||
VS_IS_DISP(opts->video_sync);
return render;
return !x11->hidden || opts->force_render;
}

static void vo_x11_set_input_region(struct vo *vo, bool passthrough)
Expand Down

0 comments on commit 7715172

Please sign in to comment.