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 652838 - gst_discoverer_discover_uri Allow NULL GError* argument
gst_discoverer_discover_uri Allow NULL GError* argument
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.34
Other Linux
: Normal normal
: 0.10.36
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-06-17 15:50 UTC by Ben Klein
Modified: 2011-06-18 09:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sample application that causes the segfault (789 bytes, text/x-csrc)
2011-06-17 15:50 UTC, Ben Klein
Details
GDB output of sample application (943 bytes, text/plain)
2011-06-17 15:51 UTC, Ben Klein
Details

Description Ben Klein 2011-06-17 15:50:36 UTC
Created attachment 190122 [details]
Sample application that causes the segfault

Calling gst_discoverer_discover_uri(discoverer, uri, NULL) causes a segmentation fault in gstdiscoverer.c. It appears to report "No such file or directory" when run in gdb.

This should probably be brought in line with other functions where the GError argument is allowed to be NULL.
Comment 1 Ben Klein 2011-06-17 15:51:21 UTC
Created attachment 190123 [details]
GDB output of sample application
Comment 2 Edward Hervey 2011-06-18 09:19:01 UTC
Module: gst-plugins-base
Branch: master
Commit: b2b1a7be1ba877f1f64fed7ff920855bb38becf1
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=b2b1a7be1ba877f1f64fed7ff920855bb38becf1

Author: Edward Hervey <bilboed@bilboed.com>
Date:   Sat Jun 18 11:16:19 2011 +0200

discoverer: Allow GError* argument to be NULL

This is how other methods taking GError* arguments behave.

Fixes #652838