meta: handle multiple implementation registration
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 3 Oct 2012 11:35:20 +0000 (13:35 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 3 Oct 2012 11:35:20 +0000 (13:35 +0200)
commit10c85869026268949ee9ad52e7c2009ce6d6c4b3
tree195671ae8d8ab806c5e51260badab332d00717f9
parentcc43752c3c5cebcd6da52c061fecf34a6f3131ae
meta: handle multiple implementation registration

First check that we can actually register the implementation before
making a GstMetaInfo. If we can't register we would otherwise end
up with an undefined type and an invalid GstMetaInfo.

It's possible that type registration fails because another metadata
with the same implementation name was already registered.
gst/gstmeta.c