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 734773 - Add allow-none annotation for gst_bin_new()
Add allow-none annotation for gst_bin_new()
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
1.4.0
Other Linux
: Normal trivial
: 1.4.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-08-14 09:49 UTC by Nirbheek Chauhan
Modified: 2014-08-14 09:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add allow-none annotation for gst_bin_new() (698 bytes, patch)
2014-08-14 09:49 UTC, Nirbheek Chauhan
committed Details | Review

Description Nirbheek Chauhan 2014-08-14 09:49:33 UTC
Created attachment 283373 [details] [review]
Add allow-none annotation for gst_bin_new()

This trivial patch allows g-i to emit the correct code for bindings, and allows you to pass None for the name when using, say, PyGI bindings.
Comment 1 Sebastian Dröge (slomo) 2014-08-14 09:51:23 UTC
I fixed that yesterday already, sorry :)

commit 2f33fd5c19e1658a923d2d65e2ea3d59a558a099
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Wed Aug 13 12:40:37 2014 +0300

    bin: Use allow-none instead of nullable until we depend on a new enough GI version

commit 9b96d4c7cd7cd1124fb91b69d236ec8fa1e41ab9
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Wed Aug 13 12:39:47 2014 +0300

    bin: gst_bin_new() can accept NULL as name