structure: don't check enum types twice.
authorStefan Kost <ensonic@users.sf.net>
Mon, 16 Nov 2009 11:49:32 +0000 (13:49 +0200)
committerStefan Kost <ensonic@users.sf.net>
Tue, 17 Nov 2009 07:40:12 +0000 (09:40 +0200)
commit7bd9299f3ea310f6b43be8c8f25fc0e005682c43
tree27add57f0dc4bd1371947a2c03af2a8664c71ad9
parent7a8fa2b6a068a8a86cf0e59608753af8e53cfe8b
structure: don't check enum types twice.

G_VALUE_HOLDS_ENUM(value) is defined as G_TYPE_CHECK_VALUE_TYPE (value,
 G_TYPE_ENUM). Just check for the right enum-type right away.
gst/gststructure.c