videoaggregator: Log the format name instead of index

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/868>
This commit is contained in:
Jan Alexander Steffens (heftig) 2020-10-13 15:28:54 +02:00
parent ac72a6adaa
commit 77c327f356

View File

@ -476,9 +476,10 @@ gst_video_aggregator_convert_pad_prepare_frame (GstVideoAggregatorPad * vpad,
return FALSE; return FALSE;
} }
GST_DEBUG_OBJECT (pad, "This pad will be converted from %d to %d", GST_DEBUG_OBJECT (pad, "This pad will be converted from %s to %s",
GST_VIDEO_INFO_FORMAT (&vpad->info), gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (&vpad->info)),
GST_VIDEO_INFO_FORMAT (&pad->priv->conversion_info)); gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (&pad->
priv->conversion_info)));
} else { } else {
GST_DEBUG_OBJECT (pad, "This pad will not need conversion"); GST_DEBUG_OBJECT (pad, "This pad will not need conversion");
} }
@ -955,8 +956,8 @@ gst_video_aggregator_default_update_caps (GstVideoAggregator * vagg,
color_name = gst_video_colorimetry_to_string (&best_info.colorimetry); color_name = gst_video_colorimetry_to_string (&best_info.colorimetry);
GST_DEBUG_OBJECT (vagg, GST_DEBUG_OBJECT (vagg,
"The output format will now be : %d with chroma : %s and colorimetry %s", "The output format will now be : %s with chroma : %s and colorimetry %s",
best_format, gst_video_format_to_string (best_format),
GST_STR_NULL (gst_video_chroma_to_string (best_info.chroma_site)), GST_STR_NULL (gst_video_chroma_to_string (best_info.chroma_site)),
GST_STR_NULL (color_name)); GST_STR_NULL (color_name));