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 139926 - id3tag's caps cause it to be plugged more than once by spider in certain conditions
id3tag's caps cause it to be plugged more than once by spider in certain cond...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.8.0
Other Linux
: Normal normal
: 0.8.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-04-13 14:40 UTC by Thomas Vander Stichele
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
debug output from my HEAD gst-launch (ie, the one plugging id3tag wrongly) (119.50 KB, application/gzip)
2004-04-13 14:42 UTC, Thomas Vander Stichele
Details
debug output of my system install, plugging correctly (130.73 KB, application/gzip)
2004-04-13 14:42 UTC, Thomas Vander Stichele
Details

Description Thomas Vander Stichele 2004-04-13 14:40:51 UTC
since id3tag also has application/x-id3 in its src caps, possibly, sometimes
spider chooses a second id3tag as the shortest path between an already added
id3tag element and the rest of the pipeline.

Attached are two debug logs, one from my system-installed 0.8.0 GStreamer, and
one from my HEAD GStreamer.  Search the logs for "found a way to connect via" to
see where it differs.  In head.out, it plugs a second id3tag at some stage.

The reason it does this is simply due to the order in which the element
factories are traversed; the autoplug function takes the first element that can
plug between the given caps, and in my HEAD install id3tag is checked before mad.

One possible solution would be to use the autoplug_cost mechanism, which
currently is defined to give 1 always.  If id3tag would have a higher autoplug
cost than mad, it wouldn't be selected in preference to mad.

An alternative would be removing application/x-id3 from the src caps, but that's
probably bound to break other stuff.
Opinions ?
Comment 1 Thomas Vander Stichele 2004-04-13 14:42:27 UTC
Created attachment 26621 [details]
debug output from my HEAD gst-launch (ie, the one plugging id3tag wrongly)
Comment 2 Thomas Vander Stichele 2004-04-13 14:42:54 UTC
Created attachment 26622 [details]
debug output of my system install, plugging correctly
Comment 3 Thomas Vander Stichele 2004-04-14 16:05:21 UTC
fixed in CVS by lowering rank of id3tag