mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
v4lsrc: avoid unnecessary run-time type checks in custom buffer finalize
And reflow code to be more indent friendly.
This commit is contained in:
parent
ec91d508af
commit
1af601d403
1 changed files with 3 additions and 2 deletions
|
@ -677,6 +677,7 @@ gst_v4lsrc_buffer_init (GTypeInstance * instance, gpointer g_class)
|
||||||
static void
|
static void
|
||||||
gst_v4lsrc_buffer_finalize (GstV4lSrcBuffer * v4lsrc_buffer)
|
gst_v4lsrc_buffer_finalize (GstV4lSrcBuffer * v4lsrc_buffer)
|
||||||
{
|
{
|
||||||
|
GstMiniObjectClass *miniobject_class;
|
||||||
GstV4lSrc *v4lsrc;
|
GstV4lSrc *v4lsrc;
|
||||||
gint num;
|
gint num;
|
||||||
|
|
||||||
|
@ -693,8 +694,8 @@ gst_v4lsrc_buffer_finalize (GstV4lSrcBuffer * v4lsrc_buffer)
|
||||||
|
|
||||||
gst_object_unref (v4lsrc);
|
gst_object_unref (v4lsrc);
|
||||||
|
|
||||||
GST_MINI_OBJECT_CLASS (v4lbuffer_parent_class)->
|
miniobject_class = (GstMiniObjectClass *) v4lbuffer_parent_class;
|
||||||
finalize (GST_MINI_OBJECT (v4lsrc_buffer));
|
miniobject_class->finalize (GST_MINI_OBJECT_CAST (v4lsrc_buffer));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a V4lSrc buffer from our mmap'd data area */
|
/* Create a V4lSrc buffer from our mmap'd data area */
|
||||||
|
|
Loading…
Reference in a new issue