]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/commitdiff
structure: gst_structure_empty_new() does better error checking
authorStefan Kost <ensonic@users.sf.net>
Tue, 8 Mar 2011 07:58:55 +0000 (09:58 +0200)
committerStefan Kost <ensonic@users.sf.net>
Tue, 8 Mar 2011 08:07:17 +0000 (10:07 +0200)
No need to check for media_type!=NULL as the function we call that actual create
the structure does a full check anyway.

gst/gststructure.c

index aec4e673e82a3ed2a85ed49d4a019b280c115246..011639a41a36a7149abea3e94885aed6981046e8 100644 (file)
@@ -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)