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 722981 - autodetect elements have inconsistent handling of autoplugin
autodetect elements have inconsistent handling of autoplugin
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.x
Other Linux
: Normal normal
: 1.3.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-01-25 18:47 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2014-02-23 19:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
autodetect: demote candidate error to warning and plug fake{sink,src} (2.43 KB, patch)
2014-02-22 19:59 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
committed Details | Review
autodetect: demote candidate error to warning and plug fake{sink,src} (2.43 KB, patch)
2014-02-23 19:36 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
committed Details | Review

Description Stefan Sauer (gstreamer, gtkdoc dev) 2014-01-25 18:47:28 UTC
The gst_auto_*_find_best() methods are a little inconsistent with regards to error handling. If we have candidate elements and they don't work, we post a message and leave the bin empty. If we have no candidates, we plug a fakesink/src.

I guess posting a missing-elements message if we have no candidates makes little sense. two ideas:

a) If we have candidates, but none of them works, we post only a warning and plug fakesink/src as well. But that sounds like hiding the issue.

b) If we have no candidates we also post an error.
Comment 1 Sebastian Dröge (slomo) 2014-02-04 12:27:03 UTC
I think that both sounds good
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2014-02-22 19:59:07 UTC
Created attachment 270009 [details] [review]
autodetect: demote candidate error to warning and plug fake{sink,src}

In the case where we have no suitable candidate we post a warning and plug a
fake-element. Do the same when non of the candidate work.

This is more consistent and plugin the fakesink as a fallback is probably
helpful for running unit tests without requiring hardware src/sink elements.

Fixes #722981
Comment 3 Sebastian Dröge (slomo) 2014-02-23 09:36:30 UTC
Review of attachment 270009 [details] [review]:

Sounds good to me
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2014-02-23 19:36:12 UTC
The following fix has been pushed:
fdb5d46 autodetect: demote candidate error to warning and plug fake{sink,src}
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2014-02-23 19:36:37 UTC
Created attachment 270061 [details] [review]
autodetect: demote candidate error to warning and plug fake{sink,src}

In the case where we have no suitable candidate we post a warning and plug a
fake-element. Do the same when non of the candidate work.

This is more consistent and plugin the fakesink as a fallback is probably
helpful for running unit tests without requiring hardware src/sink elements.

Fixes #722981