gst/gstbuffer.c: Also do a g_type_class_ref() for the subbuffer type in the init...
authorTim-Philipp Müller <tim@centricular.net>
Tue, 11 Sep 2007 18:59:09 +0000 (18:59 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 11 Sep 2007 18:59:09 +0000 (18:59 +0000)
Original commit message from CVS:
* gst/gstbuffer.c:
Also do a g_type_class_ref() for the subbuffer type in
the init function.

ChangeLog
gst/gstbuffer.c

index ab439ec..15046c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-09-11  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * gst/gstbuffer.c:
+         Also do a g_type_class_ref() for the subbuffer type in
+         the init function.
+
 2007-09-11  Wim Taymans  <wim.taymans@gmail.com>
 
        * docs/gst/gstreamer-sections.txt:
index a9b65cc..c553ac1 100644 (file)
@@ -142,6 +142,8 @@ _gst_buffer_initialize (void)
    * see http://bugzilla.gnome.org/show_bug.cgi?id=304551 */
   ptr = g_type_class_ref (GST_TYPE_BUFFER);
   g_type_class_unref (ptr);
+  ptr = g_type_class_ref (_gst_subbuffer_type);
+  g_type_class_unref (ptr);
 }
 
 GType