gst/id3demux/gstid3demux.c: Create source pad without leaking.
authorTim-Philipp Müller <tim@centricular.net>
Sun, 26 Mar 2006 12:24:56 +0000 (12:24 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 26 Mar 2006 12:24:56 +0000 (12:24 +0000)
Original commit message from CVS:
* gst/id3demux/gstid3demux.c: (gst_id3demux_add_srcpad):
Create source pad without leaking.

ChangeLog
common
gst/id3demux/gstid3demux.c

index 7141e33c646fad715da46614b3d539c470a42fed..520cfcb7176038d143d4a298c33bf711bb0e113e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 5685efc3f9976d6abe3fec557353fc2053b0e3fb..45cc64e522d61410eb8d1a3e7ef67569851cd77a 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 5685efc3f9976d6abe3fec557353fc2053b0e3fb
+Subproject commit 45cc64e522d61410eb8d1a3e7ef67569851cd77a
index e9f22c94ab8427f2169ba8724a32d3e5ab46d391..ed7c6260cd8fd589c6ca26766af7075ac985e777 100644 (file)
@@ -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,