Commit d963503b authored by Stefan Kost's avatar Stefan Kost

structure: gst_structure_empty_new() does better error checking

No need to check for media_type!=NULL as the function we call that actual create
the structure does a full check anyway.
parent 4d9e6455
......@@ -219,8 +219,6 @@ gst_structure_new (const gchar * name, const gchar * firstfield, ...)
GstStructure *structure;
va_list varargs;
g_return_val_if_fail (name != NULL, NULL);
va_start (varargs, firstfield);
structure = gst_structure_new_valist (name, firstfield, varargs);
va_end (varargs);
......@@ -250,8 +248,6 @@ gst_structure_new_valist (const gchar * name,
GstStructure *structure;
g_return_val_if_fail (name != NULL, NULL);
structure = gst_structure_empty_new (name);
if (structure)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment