From: zeeshan.ali@nokia.com Date: Wed, 14 Mar 2007 10:18:54 +0000 (+0000) Subject: rtpmux: No need to manage pads, parent does that for us X-Git-Tag: 1.1.1~568 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0208cb0a63b310e5633ce38e5de47f88cc63493;p=platform%2Fupstream%2Fgst-plugins-good.git rtpmux: No need to manage pads, parent does that for us 20070314101854-65035-ef5f4abde227102a1128835ab325905eae4c3726.gz --- diff --git a/gst/rtpmanager/gstrtpmux.c b/gst/rtpmanager/gstrtpmux.c index 7031960..e0781fc 100644 --- a/gst/rtpmanager/gstrtpmux.c +++ b/gst/rtpmanager/gstrtpmux.c @@ -66,7 +66,6 @@ struct _GstRTPMux GstPad *srcpad; /* sinkpads */ - GSList *sinkpads; gint numpads; guint16 seqnum_base; @@ -220,12 +219,6 @@ gst_rtp_mux_finalize (GObject * object) rtp_mux = GST_RTP_MUX (object); - if (rtp_mux->sinkpads) { - g_slist_foreach (rtp_mux->sinkpads, (GFunc) gst_object_unref, NULL); - g_slist_free (rtp_mux->sinkpads); - rtp_mux->sinkpads = NULL; - } - G_OBJECT_CLASS (parent_class)->finalize (object); } @@ -256,7 +249,6 @@ gst_rtp_mux_request_new_pad (GstElement * element, newpad = gst_pad_new_from_template (templ, name); g_free (name); - rtp_mux->sinkpads = g_slist_append (rtp_mux->sinkpads, (gpointer) newpad); rtp_mux->numpads++; } else { g_warning ("rtp_mux: this is not our template!\n");