gstbuffer: avoid typechecks in finalize

Avoid useless typechecking in the finalize of buffers and subbuffers.
This commit is contained in:
Wim Taymans 2009-05-02 13:02:10 +02:00 committed by Wim Taymans
parent 103b2a41bf
commit 13515a7535

View file

@ -165,8 +165,8 @@ gst_buffer_finalize (GstBuffer * buffer)
gst_caps_replace (&GST_BUFFER_CAPS (buffer), NULL); gst_caps_replace (&GST_BUFFER_CAPS (buffer), NULL);
GST_MINI_OBJECT_CLASS (gst_buffer_parent_class)->finalize ((GstMiniObjectClass *)
(GST_MINI_OBJECT_CAST (buffer)); 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_buffer_unref (buffer->parent);
GST_MINI_OBJECT_CLASS (gst_subbuffer_parent_class)->finalize ((GstMiniObjectClass *) gst_subbuffer_parent_class)->finalize
(GST_MINI_OBJECT_CAST (buffer)); (GST_MINI_OBJECT_CAST (buffer));
} }