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. --- tests/check/elements/icydemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/check/elements/icydemux.c b/tests/check/elements/icydemux.c index 10504e4c..8a6e9101 100644 --- a/tests/check/elements/icydemux.c +++ b/tests/check/elements/icydemux.c @@ -101,8 +101,8 @@ icydemux_found_pad (GstElement * src, GstPad * pad, gpointer data) 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 * -- cgit