mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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:
parent
8b9f044b70
commit
db47065810
2 changed files with 13 additions and 0 deletions
|
@ -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>
|
||||
|
||||
* ext/gio/gstgiostreamsink.c:
|
||||
|
|
|
@ -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_finalize (GstV4lSrcBuffer * v4lsrc_buffer);
|
||||
|
||||
static GstBufferClass *v4lbuffer_parent_class = NULL;
|
||||
|
||||
GType
|
||||
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);
|
||||
|
||||
v4lbuffer_parent_class = g_type_class_peek_parent (g_class);
|
||||
|
||||
mini_object_class->finalize = (GstMiniObjectFinalizeFunction)
|
||||
gst_v4lsrc_buffer_finalize;
|
||||
}
|
||||
|
@ -689,6 +693,9 @@ gst_v4lsrc_buffer_finalize (GstV4lSrcBuffer * v4lsrc_buffer)
|
|||
}
|
||||
|
||||
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 */
|
||||
|
|
Loading…
Reference in a new issue