structure: use G_GNUC_NULL_TERMINATED for gst_structure_new()

If you get a warning, use gst_structure_empty_new().

https://bugzilla.gnome.org/show_bug.cgi?id=343346
This commit is contained in:
Tim-Philipp Müller 2011-10-27 13:25:08 +01:00
parent b6d34084f2
commit c00c8903ca

View file

@ -89,7 +89,7 @@ GstStructure * gst_structure_empty_new (const gchar *
GstStructure * gst_structure_id_empty_new (GQuark quark); GstStructure * gst_structure_id_empty_new (GQuark quark);
GstStructure * gst_structure_new (const gchar * name, GstStructure * gst_structure_new (const gchar * name,
const gchar * firstfield, const gchar * firstfield,
...); ...) G_GNUC_NULL_TERMINATED;
GstStructure * gst_structure_new_valist (const gchar * name, GstStructure * gst_structure_new_valist (const gchar * name,
const gchar * firstfield, const gchar * firstfield,
va_list varargs); va_list varargs);