videoconvert: Enhance debug message to be more human readable
authorSeungha Yang <seungha@centricular.com>
Sun, 20 Sep 2020 10:47:08 +0000 (19:47 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 14 Oct 2020 19:12:51 +0000 (19:12 +0000)
Numerical representation of GstVideoFormat is not debugging
friendly

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/822>

gst/videoconvert/gstvideoconvert.c

index 4adc430..00f77fa 100644 (file)
@@ -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;