GNOME Bugzilla – Bug 761799
gst_structure_new causes compile-time warning "not enough variable arguments to fit a sentinel [-Wformat=]"
Last modified: 2016-02-09 23:59:59 UTC
Hi, The compiler I'm using is g++ 5.2.1. gst_structure_new("foo", NULL) will cause compile-time warning: not enough variable arguments to fit a sentinel [-Wformat=] Using gst_structure_new("foo", NULL, NULL) instead can dismiss the warning. In this tutorial http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+5%3A+GUI+toolkit+integration gst_structure_new need only one NULL to terminate its argument list. The tutorial is for GStreamer 0.1, obviously. Just wondering if this double-NULL needed is an intentional change in GStreamer 1.0 or a bug? Thnaks :)
Thanks for the report, however it's intentional. You can use gst_structure_new_empty() instead here.