Commit 13515a75 authored by Wim Taymans's avatar Wim Taymans Committed by Wim Taymans
Browse files

gstbuffer: avoid typechecks in finalize

Avoid useless typechecking in the finalize of buffers and subbuffers.
parent 103b2a41
......@@ -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));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment