miniobject: avoid duplicate type check when freeing miniobject
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 11 Oct 2010 18:27:54 +0000 (19:27 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 11 Oct 2010 18:55:52 +0000 (19:55 +0100)
commit0dbb0f203e23524f323045eb55c5e8dc4f1c124c
treededfcbd506206b107383cb5d70dbc09dd65ab912
parent2c4afb966d2b6c734eae96cbcf94bda04e796c05
miniobject: avoid duplicate type check when freeing miniobject

gst_mini_object_unref() has guards that check the type already, so
we don't really need to re-check it here again while getting the
class (there's not really much point to that anyway, since we don't
check the return value of the get_class, so we'd crash anyway if
we're not dealing with a mini object, the only question would
be if there'd be a warning before the crash or not).
gst/gstminiobject.c