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 671047 - [discoverer] don't change result when processing missing plugin errors
[discoverer] don't change result when processing missing plugin errors
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: 0.10.37
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-02-29 11:29 UTC by Jonathan Matthew
Modified: 2012-03-03 13:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
don't change result when processing missing plugin errors (1.23 KB, patch)
2012-02-29 11:57 UTC, Jonathan Matthew
committed Details | Review

Description Jonathan Matthew 2012-02-29 11:29:29 UTC
When no decoder is available for the file being discovered, GstDiscoverer ends up with result == GST_DISCOVERER_ERROR rather than GST_DISCOVERER_MISSING_PLUGINS because it gets a couple of error messages after the missing plugin message.  It'd be more useful if it kept the GST_DISCOVERER_MISSING_PLUGINS result in this case.
Comment 1 Jonathan Matthew 2012-02-29 11:57:08 UTC
Created attachment 208673 [details] [review]
don't change result when processing missing plugin errors

don't change result when processing a GST_CORE_ERROR_MISSING_PLUGIN error and the result is currently GST_DISCOVERER_MISSING_PLUGINS.
Comment 2 Tim-Philipp Müller 2012-03-03 13:57:53 UTC
Thanks!

IMHO there's still something a bit dodgy about all of this. I think the GError should be set/overwritten alongside the return value as needed, but there's clearly a bug here, and the patch fixes that, so let's do that for now. I've changed it slightly to also consider STREAM_CODEC_NOT_FOUND errors which are like CORE_MISSING_PLUGIN. Hope I didn't mess anything up.

 commit 85a7b8f5622536de9b888f58c7c6ca1b15834b78
 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk>
 Date:   Sat Mar 3 13:51:55 2012 +0000

    tests: add test to check discoverer return code for missing plugins case
    
    https://bugzilla.gnome.org/show_bug.cgi?id=671047

 commit bc1fb43408520e62661598d63ece648801e06f41
 Author: Jonathan Matthew <jonathan@d14n.org>
 Date:   Wed Feb 29 21:25:24 2012 +1000

    discoverer: don't change result for missing plugin errors
    
    https://bugzilla.gnome.org/show_bug.cgi?id=671047