Skip to content

Commit 913bb26

Browse files
committed
wayland: only print color repr message if we actually set anything
1 parent 6e67836 commit 913bb26

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
@@ -3562,7 +3562,9 @@ static void set_color_representation(struct vo_wayland_state *wl)
35623562
enum mp_imgfmt imgfmt = wl->target_params.hw_subfmt ? wl->target_params.hw_subfmt : wl->target_params.imgfmt;
35633563
bool is_420_subsampled = mp_imgfmt_is_420_subsampled(imgfmt);
35643564

3565-
MP_VERBOSE(wl, "Setting color representation:\n");
3565+
if ((coefficients && range) || alpha || (is_420_subsampled && chroma_location))
3566+
MP_VERBOSE(wl, "Setting color representation:\n");
3567+
35663568
if (coefficients && range) {
35673569
MP_VERBOSE(wl, " Coefficients: %s, Range: %s\n",
35683570
m_opt_choice_str(pl_csp_names, repr.sys),

0 commit comments

Comments
 (0)