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 147713 - opt scheduler resorts the chain incorrectly
opt scheduler resorts the chain incorrectly
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.8.4
Other Linux
: Normal blocker
: 0.8.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-07-16 12:28 UTC by Andy Wingo
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Small innocent patch to fix the problem (1.38 KB, patch)
2004-07-16 12:29 UTC, Andy Wingo
none Details | Review

Description Andy Wingo 2004-07-16 12:28:01 UTC
If an already-linked PLAYING element chain is added to a PLAYING opt scheduler,
group_update_links_for_element will sometimes incorrectly exchange the src and
sink groups. This throws off the sort algorithm, leading to a deadlock in the
pipeline.
Comment 1 Andy Wingo 2004-07-16 12:29:41 UTC
Created attachment 29581 [details] [review]
Small innocent patch to fix the problem

The patch is very small and harmless :-)
Comment 2 Wim Taymans 2004-07-16 15:56:02 UTC
Your patch does indeed fix the issue you mention and is indeed very small,
harmless and elegant in its pure simplicity. In CVS can be found a very small
and harmfull test app in the testsuite/schedulers dir that sortof shows the bad
sorting in the scheduler. 

After applying the patch another bug becomes apparent, when adding a loop based
element to the scheduler, the links to other groups are automatically followed
and incremented. This should not happen because the bin will call pad_link
explicitly for those connection, resulting in them counted twice.

The patch in CVS therefore contains a partial revert of patchset 1.89 where the
flaw was introduced.
Comment 3 Andy Wingo 2004-07-17 11:09:37 UTC
Your sinister nature has been noted :-) Soundscrape works with the patch. Thanks.