gst/avi/gstavidemux.c: Don't unref the GstPadTemplate returned by gst_element_class_get_pad_template().

Original commit message from CVS:
* gst/avi/gstavidemux.c: (gst_avi_demux_parse_stream):
Don't unref the GstPadTemplate returned by
gst_element_class_get_pad_template().
This commit is contained in:
Edward Hervey 2006-04-07 10:48:19 +00:00
parent 7a7a2109fa
commit 200bb9a5c8
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2006-04-07 Edward Hervey <edward@fluendo.com>
* gst/avi/gstavidemux.c: (gst_avi_demux_parse_stream):
Don't unref the GstPadTemplate returned by
gst_element_class_get_pad_template().
2006-04-06 Tim-Philipp Müller <tim at centricular dot net> 2006-04-06 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Brian Cameron <brian dot cameron at sun dot com> Patch by: Brian Cameron <brian dot cameron at sun dot com>

View file

@ -1127,7 +1127,6 @@ gst_avi_demux_parse_stream (GstElement * element, GstBuffer * buf)
if (stream->pad) if (stream->pad)
gst_object_unref (stream->pad); gst_object_unref (stream->pad);
pad = stream->pad = gst_pad_new_from_template (templ, padname); pad = stream->pad = gst_pad_new_from_template (templ, padname);
gst_object_unref (templ);
stream->last_flow = GST_FLOW_OK; stream->last_flow = GST_FLOW_OK;
stream->idx_duration = GST_CLOCK_TIME_NONE; stream->idx_duration = GST_CLOCK_TIME_NONE;
g_free (padname); g_free (padname);