sys/v4l/v4lsrc_calls.c: Correctly chain up the finalize method.

Original commit message from CVS:
* sys/v4l/v4lsrc_calls.c: (gst_v4lsrc_buffer_class_init),
(gst_v4lsrc_buffer_finalize):
Correctly chain up the finalize method.
This commit is contained in:
Sebastian Dröge 2008-02-12 11:36:27 +00:00
parent 8b9f044b70
commit db47065810
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2008-02-12 Sebastian Dröge <slomo@circular-chaos.org>
* sys/v4l/v4lsrc_calls.c: (gst_v4lsrc_buffer_class_init),
(gst_v4lsrc_buffer_finalize):
Correctly chain up the finalize method.
2008-02-12 Sebastian Dröge <slomo@circular-chaos.org> 2008-02-12 Sebastian Dröge <slomo@circular-chaos.org>
* ext/gio/gstgiostreamsink.c: * ext/gio/gstgiostreamsink.c:

View file

@ -632,6 +632,8 @@ static void gst_v4lsrc_buffer_class_init (gpointer g_class,
static void gst_v4lsrc_buffer_init (GTypeInstance * instance, gpointer g_class); static void gst_v4lsrc_buffer_init (GTypeInstance * instance, gpointer g_class);
static void gst_v4lsrc_buffer_finalize (GstV4lSrcBuffer * v4lsrc_buffer); static void gst_v4lsrc_buffer_finalize (GstV4lSrcBuffer * v4lsrc_buffer);
static GstBufferClass *v4lbuffer_parent_class = NULL;
GType GType
gst_v4lsrc_buffer_get_type (void) gst_v4lsrc_buffer_get_type (void)
{ {
@ -661,6 +663,8 @@ gst_v4lsrc_buffer_class_init (gpointer g_class, gpointer class_data)
{ {
GstMiniObjectClass *mini_object_class = GST_MINI_OBJECT_CLASS (g_class); GstMiniObjectClass *mini_object_class = GST_MINI_OBJECT_CLASS (g_class);
v4lbuffer_parent_class = g_type_class_peek_parent (g_class);
mini_object_class->finalize = (GstMiniObjectFinalizeFunction) mini_object_class->finalize = (GstMiniObjectFinalizeFunction)
gst_v4lsrc_buffer_finalize; gst_v4lsrc_buffer_finalize;
} }
@ -689,6 +693,9 @@ gst_v4lsrc_buffer_finalize (GstV4lSrcBuffer * v4lsrc_buffer)
} }
gst_object_unref (v4lsrc); gst_object_unref (v4lsrc);
GST_MINI_OBJECT_CLASS (v4lbuffer_parent_class)->
finalize (GST_MINI_OBJECT (v4lsrc_buffer));
} }
/* Create a V4lSrc buffer from our mmap'd data area */ /* Create a V4lSrc buffer from our mmap'd data area */