mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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.
This commit is contained in:
parent
7a8fa2b6a0
commit
7bd9299f3e
1 changed files with 0 additions and 2 deletions
|
@ -1448,8 +1448,6 @@ gst_structure_get_enum (const GstStructure * structure,
|
|||
|
||||
if (field == NULL)
|
||||
return FALSE;
|
||||
if (!G_VALUE_HOLDS_ENUM (&field->value))
|
||||
return FALSE;
|
||||
if (!G_TYPE_CHECK_VALUE_TYPE (&field->value, enumtype))
|
||||
return FALSE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue