mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
gstbuffer: avoid typechecks in finalize
Avoid useless typechecking in the finalize of buffers and subbuffers.
This commit is contained in:
parent
103b2a41bf
commit
13515a7535
1 changed files with 3 additions and 3 deletions
|
@ -165,8 +165,8 @@ gst_buffer_finalize (GstBuffer * buffer)
|
|||
|
||||
gst_caps_replace (&GST_BUFFER_CAPS (buffer), NULL);
|
||||
|
||||
GST_MINI_OBJECT_CLASS (gst_buffer_parent_class)->finalize
|
||||
(GST_MINI_OBJECT_CAST (buffer));
|
||||
((GstMiniObjectClass *)
|
||||
gst_buffer_parent_class)->finalize (GST_MINI_OBJECT_CAST (buffer));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -483,7 +483,7 @@ gst_subbuffer_finalize (GstSubBuffer * buffer)
|
|||
{
|
||||
gst_buffer_unref (buffer->parent);
|
||||
|
||||
GST_MINI_OBJECT_CLASS (gst_subbuffer_parent_class)->finalize
|
||||
((GstMiniObjectClass *) gst_subbuffer_parent_class)->finalize
|
||||
(GST_MINI_OBJECT_CAST (buffer));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue