+2008-05-06 Wim Taymans <wim.taymans@collabora.co.uk>
+
+ * gst/playback/gstdecodebin2.c: (connect_pad):
+ When autoplugging fails, set the element back to NULL before
+ unreffing it.
+
2008-05-06 Sebastian Dröge <slomo@circular-chaos.org>
* win32/common/libgstaudio.def:
if (!(sinkpad = find_sink_pad (element))) {
GST_WARNING_OBJECT (dbin, "Element %s doesn't have a sink pad",
GST_ELEMENT_NAME (element));
+ gst_element_set_state (element, GST_STATE_NULL);
gst_object_unref (element);
continue;
}
GST_WARNING_OBJECT (dbin, "Couldn't add %s to the bin",
GST_ELEMENT_NAME (element));
gst_object_unref (sinkpad);
+ gst_element_set_state (element, GST_STATE_NULL);
gst_object_unref (element);
continue;
}