The gst_video_colorimetry_to_string() function returns a newly created
string that represents the GstVideoColorimetry value. So, that needs
to be released after usage, in e.g. GST_DEBUG().
else
sink->color_standard = 0;
- GST_DEBUG ("colorimetry %s", gst_video_colorimetry_to_string (cinfo));
+#ifndef GST_DISABLE_GST_DEBUG
+ {
+ gchar *const colorimetry_string = gst_video_colorimetry_to_string (cinfo);
+ GST_DEBUG ("colorimetry %s", colorimetry_string);
+ g_free (colorimetry_string);
+ }
+#endif
#endif
}