Skip to content

Commit 5c3e714

Browse files
committed
wayland: only print color repr message if we actually set anything
1 parent d508fc2 commit 5c3e714

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

video/out/wayland_common.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3547,7 +3547,9 @@ static void set_color_representation(struct vo_wayland_state *wl)
35473547
enum mp_imgfmt imgfmt = wl->target_params.hw_subfmt ? wl->target_params.hw_subfmt : wl->target_params.imgfmt;
35483548
bool is_420_subsampled = mp_imgfmt_is_420_subsampled(imgfmt);
35493549

3550-
MP_VERBOSE(wl, "Setting color representation:\n");
3550+
if ((coefficients && range) || alpha || (is_420_subsampled && chroma_location))
3551+
MP_VERBOSE(wl, "Setting color representation:\n");
3552+
35513553
if (coefficients && range) {
35523554
MP_VERBOSE(wl, " Coefficients: %s, Range: %s\n",
35533555
m_opt_choice_str(pl_csp_names, repr.sys),

0 commit comments

Comments
 (0)