No need to check for media_type!=NULL as the function we call that actual create
the structure does a full check anyway.
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);
{
GstStructure *structure;
- g_return_val_if_fail (name != NULL, NULL);
-
structure = gst_structure_empty_new (name);
if (structure)