[vlc-devel] [PATCH] kms: avoid printing NULL
Alexandre Janniaux
ajanni at videolabs.io
Fri Aug 23 12:37:44 CEST 2019
It fixes the following warning:
ā%4sā directive argument is null [-Wformat-overflow=]
---
modules/video_output/kms.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/kms.c b/modules/video_output/kms.c
index 025a4a2f79..7626254b65 100644
--- a/modules/video_output/kms.c
+++ b/modules/video_output/kms.c
@@ -732,7 +732,7 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
chroma = NULL;
} else {
sys->vlc_fourcc = fmtp->i_chroma;
- msg_Dbg(vd, "Chroma %4s invalid, using default", chroma);
+ msg_Dbg(vd, "Chroma not defined, using default");
}
chroma = var_InheritString(vd, "kms-drm-chroma");
--
2.23.0
More information about the vlc-devel
mailing list