summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-10-11 13:24:42 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-10-11 13:24:42 +0000
commita91177414c6c798ee921faf575ee15a509e77488 (patch)
treeeb4dc78c76f4687b4b650cdf775323a7c134c6dc /gst
parent734243efa288947fa6296f2917550b8e85bbb50f (diff)
gst/: Activate pad before adding it to the already-running element.
Original commit message from CVS: * 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.
Diffstat (limited to 'gst')
-rw-r--r--gst/apetag/gsttagdemux.c1
-rw-r--r--gst/icydemux/gsticydemux.c1
-rw-r--r--gst/id3demux/gstid3demux.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/gst/apetag/gsttagdemux.c b/gst/apetag/gsttagdemux.c
index 2dd189a0..1e52ee2d 100644
--- a/gst/apetag/gsttagdemux.c
+++ b/gst/apetag/gsttagdemux.c
@@ -329,6 +329,7 @@ gst_tag_demux_add_srcpad (GstTagDemux * tagdemux, GstCaps * new_caps)
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));
diff --git a/gst/icydemux/gsticydemux.c b/gst/icydemux/gsticydemux.c
index f2ba6e33..dd775665 100644
--- a/gst/icydemux/gsticydemux.c
+++ b/gst/icydemux/gsticydemux.c
@@ -262,6 +262,7 @@ gst_icydemux_add_srcpad (GstICYDemux * icydemux, GstCaps * new_caps)
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));
diff --git a/gst/id3demux/gstid3demux.c b/gst/id3demux/gstid3demux.c
index 511ef63b..98443193 100644
--- a/gst/id3demux/gstid3demux.c
+++ b/gst/id3demux/gstid3demux.c
@@ -281,6 +281,7 @@ gst_id3demux_add_srcpad (GstID3Demux * id3demux, GstCaps * new_caps)
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));