+2006-10-11 Tim-Philipp Müller <tim at centricular dot net>
+
+ * gst/apetag/gsttagdemux.c: (gst_tag_demux_add_srcpad):
+ * gst/icydemux/gsticydemux.c: (gst_icydemux_add_srcpad):
+ * gst/id3demux/gstid3demux.c: (gst_id3demux_add_srcpad):
+ Activate pad before adding it to the already-running element.
+
+ * tests/check/elements/icydemux.c: (icydemux_found_pad):
+ Activate newly-created pad too.
+
2006-10-11 Wim Taymans <wim@fluendo.com>
Patch by: Sebastien Cote <sebas642 at yahoo dot ca>
tagdemux->priv->src_caps);
gst_object_ref (tagdemux->priv->srcpad);
+ gst_pad_set_active (tagdemux->priv->srcpad, TRUE);
if (!(gst_element_add_pad (GST_ELEMENT (tagdemux), tagdemux->priv->srcpad)))
return FALSE;
gst_element_no_more_pads (GST_ELEMENT (tagdemux));
GST_DEBUG_OBJECT (icydemux, "Adding src pad with caps %" GST_PTR_FORMAT,
icydemux->src_caps);
+ gst_pad_set_active (icydemux->srcpad, TRUE);
if (!(gst_element_add_pad (GST_ELEMENT (icydemux), icydemux->srcpad)))
return FALSE;
gst_element_no_more_pads (GST_ELEMENT (icydemux));
id3demux->src_caps);
gst_object_ref (id3demux->srcpad);
+ gst_pad_set_active (id3demux->srcpad, TRUE);
if (!(gst_element_add_pad (GST_ELEMENT (id3demux), id3demux->srcpad)))
return FALSE;
gst_element_no_more_pads (GST_ELEMENT (id3demux));
fail_unless (gst_pad_link (srcpad, sinkpad) == GST_PAD_LINK_OK,
"Failed to link pads");
gst_object_unref (srcpad);
-
ASSERT_OBJECT_REFCOUNT (srcpad, "srcpad", 2);
+ gst_pad_set_active (sinkpad, TRUE);
}
static GstElement *