GNOME Bugzilla – Bug 693704
gst_message_parse_{warning,error} annotations wrongly claim allow-none for GError parameter
Last modified: 2013-02-13 16:54:50 UTC
The docs/annotations claim that it's possible to pass NULL for the GError ** parameter but that happily crashes; looking at the code, *gerror is assigned without checking. So either the docs are wrong or the code is.
Same for gst_message_parse_warning, obviously
also applies to 0.10 if you care.
Thanks, nice catch. I think they should accept NULL pointers even if it's not every useful in this case, for consistency.
commit 5fc34add2560ad3d6abd970b0b8cbe4f35e00f2a Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Wed Feb 13 16:52:13 2013 +0000 message: accept NULL error argument in gst_message_parse_{error,warning,info} And simplify code a bit while at it. https://bugzilla.gnome.org/show_bug.cgi?id=693704