After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 761799 - gst_structure_new causes compile-time warning "not enough variable arguments to fit a sentinel [-Wformat=]"
gst_structure_new causes compile-time warning "not enough variable arguments ...
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
1.6.3
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-02-09 23:45 UTC by vgdoqd
Modified: 2016-02-09 23:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description vgdoqd 2016-02-09 23:45:14 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 :)
Comment 1 Tim-Philipp Müller 2016-02-09 23:59:59 UTC
Thanks for the report, however it's intentional.

You can use gst_structure_new_empty() instead here.