structure: use G_GNUC_NULL_TERMINATED for gst_structure_new()
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 27 Oct 2011 12:25:08 +0000 (13:25 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 27 Oct 2011 12:25:08 +0000 (13:25 +0100)
If you get a warning, use gst_structure_empty_new().

https://bugzilla.gnome.org/show_bug.cgi?id=343346

gst/gststructure.h

index 49ce202..964a2a3 100644 (file)
@@ -89,7 +89,7 @@ GstStructure *          gst_structure_empty_new            (const gchar *
 GstStructure *          gst_structure_id_empty_new         (GQuark                   quark);
 GstStructure *          gst_structure_new                  (const gchar *            name,
                                                            const gchar *            firstfield,
-                                                           ...);
+                                                           ...) G_GNUC_NULL_TERMINATED;
 GstStructure *          gst_structure_new_valist           (const gchar *            name,
                                                            const gchar *            firstfield,
                                                            va_list                  varargs);