+2006-05-02 Stefan Kost <ensonic@users.sf.net>
+
+ * gst/playback/gstplaybin.c: (add_sink):
+ * gst/playback/test.c: (main):
+ * gst/playback/test5.c: (dump_element_stats):
+ * gst/playback/test6.c: (main):
+ free cpas using gst_caps_unref, don't leak caps-strings
+
2006-05-01 Tim-Philipp Müller <tim at centricular dot net>
* gst/typefind/gsttypefindfunctions.c: (musepack_type_find),
GST_DEBUG_OBJECT (play_bin,
"link failed when adding sink, caps %s, reason %d", capsstr, linkres);
g_free (capsstr);
- g_free (caps);
+ gst_caps_unref (caps);
gst_element_set_state (sink, GST_STATE_NULL);
gst_bin_remove (GST_BIN (play_bin), sink);
"subtitle link failed when adding sink, caps %s, reason %d", capsstr,
linkres);
g_free (capsstr);
- g_free (caps);
+ gst_caps_unref (caps);
return TRUE;
}
sinkpad = gst_element_get_pad (sink, "sink");
res = gst_pad_link (srcpad, sinkpad);
if (!res) {
+ GstCaps *caps;
gchar *capsstr;
- capsstr = gst_caps_to_string (gst_pad_get_caps (srcpad));
+ caps = gst_pad_get_caps (srcpad);
+ capsstr = gst_caps_to_string (caps);
g_warning ("could not link %s", capsstr);
g_free (capsstr);
+ gst_caps_unref (caps);
}
//g_signal_emit_by_name (G_OBJECT (player), "link_stream", obj, sinkpad);
}
str = gst_caps_to_string (caps);
g_print (" caps: %s\n", str);
g_free (str);
+ gst_caps_unref (caps);
query = gst_query_new_duration (GST_FORMAT_TIME);
if (gst_pad_query (pad, query)) {
str = gst_caps_to_string (caps);
g_print (" caps: %s\n", str);
g_free (str);
+ gst_caps_unref (caps);
query = gst_query_new_duration (GST_FORMAT_TIME);
if (gst_pad_query (pad, query)) {