From a91177414c6c798ee921faf575ee15a509e77488 Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Wed, 11 Oct 2006 13:24:42 +0000 Subject: 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. --- gst/id3demux/gstid3demux.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gst/id3demux') 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)); -- cgit