From: Stefan Kost Date: Tue, 8 Mar 2011 07:58:55 +0000 (+0200) Subject: structure: gst_structure_empty_new() does better error checking X-Git-Tag: RELEASE-0.10.33~318 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d963503b26b7b50a7ccfe86bad8d49032435111b;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/gst/gststructure.c b/gst/gststructure.c index aec4e67..011639a 100644 --- a/gst/gststructure.c +++ b/gst/gststructure.c @@ -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)