diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2006-03-26 12:24:56 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2006-03-26 12:24:56 +0000 |
commit | 74fe5e87e81e3ebba99063319aae136962f90876 (patch) | |
tree | 80c6b66a33331096657a6103056f0a2648f3fb3c | |
parent | 43dd3b94cddac72fdd4fde367bd93ca788d3447f (diff) |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
m--------- | common | 0 | ||||
-rw-r--r-- | gst/id3demux/gstid3demux.c | 4 |
3 files changed, 6 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2006-03-26 Tim-Philipp Müller <tim at centricular dot net> + + * gst/id3demux/gstid3demux.c: (gst_id3demux_add_srcpad): + Create source pad without leaking. + 2006-03-24 Wim Taymans <wim@fluendo.com> * ext/flac/gstflacdec.c: (gst_flac_dec_handle_seek_event): diff --git a/common b/common -Subproject 5685efc3f9976d6abe3fec557353fc2053b0e3f +Subproject 45cc64e522d61410eb8d1a3e7ef67569851cd77 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, |