From 74fe5e87e81e3ebba99063319aae136962f90876 Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Sun, 26 Mar 2006 12:24:56 +0000 Subject: gst/id3demux/gstid3demux.c: Create source pad without leaking. Original commit message from CVS: * gst/id3demux/gstid3demux.c: (gst_id3demux_add_srcpad): Create source pad without leaking. --- gst/id3demux/gstid3demux.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gst/id3demux') diff --git a/gst/id3demux/gstid3demux.c b/gst/id3demux/gstid3demux.c index e9f22c94..ed7c6260 100644 --- a/gst/id3demux/gstid3demux.c +++ b/gst/id3demux/gstid3demux.c @@ -254,9 +254,7 @@ gst_id3demux_add_srcpad (GstID3Demux * id3demux, GstCaps * new_caps) } if (id3demux->srcpad == NULL) { - id3demux->srcpad = - gst_pad_new_from_template (gst_element_class_get_pad_template - (GST_ELEMENT_GET_CLASS (id3demux), "src"), "src"); + id3demux->srcpad = gst_pad_new_from_static_template (&src_factory, "src"); g_return_val_if_fail (id3demux->srcpad != NULL, FALSE); gst_pad_set_query_type_function (id3demux->srcpad, -- cgit