caps: use G_GNUC_NULL_TERMINATED for gst_caps_new_simple() and gst_caps_new_full()
authorJohan Boulé <bohan.gnome@retropaganda.info>
Thu, 27 Oct 2011 13:56:24 +0000 (14:56 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 27 Oct 2011 13:56:24 +0000 (14:56 +0100)
If you get warnings, use gst_caps_new_empty().

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

gst/gstcaps.h

index 567f7b8..fb224f8 100644 (file)
@@ -342,8 +342,9 @@ GstCaps *         gst_caps_new_empty               (void);
 GstCaps *         gst_caps_new_any                 (void);
 GstCaps *         gst_caps_new_simple              (const char    *media_type,
                                                     const char    *fieldname,
-                                                    ...);
-GstCaps *         gst_caps_new_full                (GstStructure  *struct1, ...);
+                                                    ...) G_GNUC_NULL_TERMINATED;
+GstCaps *         gst_caps_new_full                (GstStructure  *struct1,
+                                                    ...) G_GNUC_NULL_TERMINATED;
 GstCaps *         gst_caps_new_full_valist         (GstStructure  *structure,
                                                     va_list        var_args);