From cea2bccfc660dd2c45f87a260b3234111d53080a Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sun, 20 Sep 2020 19:47:08 +0900 Subject: [PATCH] videoconvert: Enhance debug message to be more human readable Numerical representation of GstVideoFormat is not debugging friendly Part-of: --- gst/videoconvert/gstvideoconvert.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst/videoconvert/gstvideoconvert.c b/gst/videoconvert/gstvideoconvert.c index 4adc430..00f77fa 100644 --- a/gst/videoconvert/gstvideoconvert.c +++ b/gst/videoconvert/gstvideoconvert.c @@ -495,8 +495,9 @@ gst_video_convert_set_info (GstVideoFilter * filter, if (space->convert == NULL) goto no_convert; - GST_DEBUG ("reconfigured %d %d", GST_VIDEO_INFO_FORMAT (in_info), - GST_VIDEO_INFO_FORMAT (out_info)); + GST_DEBUG_OBJECT (filter, "converting format %s -> %s", + gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (in_info)), + gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (out_info))); return TRUE; -- 2.7.4