GstElement *capsfilter;
GstPad *sinkpad;
GstCaps *result;
+ gchar *caps_str;
opusdec = gst_element_factory_make ("opusdec", NULL);
capsfilter = gst_element_factory_make ("capsfilter", NULL);
g_object_set (capsfilter, "caps", downstream_caps, NULL);
result = gst_pad_query_caps (sinkpad, filter);
result = remove_extra_caps_fields (result);
+ caps_str = gst_caps_to_string (result);
fail_unless (gst_caps_is_equal (expected_result, result),
- "Unexpected output caps: %s", gst_caps_to_string (result));
+ "Unexpected output caps: %s", caps_str);
if (filter)
gst_caps_unref (filter);
gst_object_unref (sinkpad);
gst_object_unref (opusdec);
gst_object_unref (capsfilter);
+ g_free (caps_str);
}
static void