structure: don't check type twice

This commit is contained in:
Stefan Kost 2009-11-17 17:06:08 +02:00
parent 8d5c77535e
commit f864187bf5

View file

@ -1404,8 +1404,6 @@ gst_structure_get_string (const GstStructure * structure,
if (field == NULL)
return NULL;
if (!G_VALUE_HOLDS_STRING (&field->value))
return NULL;
return g_value_get_string (&field->value);
}