videoconvert: Enhance debug message to be more human readable

Numerical representation of GstVideoFormat is not debugging
friendly

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/822>
This commit is contained in:
Seungha Yang 2020-09-20 19:47:08 +09:00 committed by GStreamer Merge Bot
parent bcabdfb0f9
commit cea2bccfc6

View 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;