v4lsrc: avoid unnecessary run-time type checks in custom buffer finalize

And reflow code to be more indent friendly.
This commit is contained in:
Tim-Philipp Müller 2009-09-01 14:28:48 +01:00
parent ec91d508af
commit 1af601d403

View file

@ -677,6 +677,7 @@ gst_v4lsrc_buffer_init (GTypeInstance * instance, gpointer g_class)
static void
gst_v4lsrc_buffer_finalize (GstV4lSrcBuffer * v4lsrc_buffer)
{
GstMiniObjectClass *miniobject_class;
GstV4lSrc *v4lsrc;
gint num;
@ -693,8 +694,8 @@ gst_v4lsrc_buffer_finalize (GstV4lSrcBuffer * v4lsrc_buffer)
gst_object_unref (v4lsrc);
GST_MINI_OBJECT_CLASS (v4lbuffer_parent_class)->
finalize (GST_MINI_OBJECT (v4lsrc_buffer));
miniobject_class = (GstMiniObjectClass *) v4lbuffer_parent_class;
miniobject_class->finalize (GST_MINI_OBJECT_CAST (v4lsrc_buffer));
}
/* Create a V4lSrc buffer from our mmap'd data area */