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 312901 - Random linking/unlinking doesn't work
Random linking/unlinking doesn't work
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-08-08 15:26 UTC by Ronald Bultje
Modified: 2006-03-10 16:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase (4.21 KB, text/plain)
2005-08-08 15:27 UTC, Ronald Bultje
Details

Description Ronald Bultje 2005-08-08 15:26:01 UTC
Attached is a testcase that does random links/unlinks. The goal is to toggle
visualizations of an audio track in runtime, I can't get the testcase much
simpler than this. When playing, the toggle works, and pausing works, also. Now,
the problem comes when doing either together:

(start) - toggle off - play - toggle on:

hangs, with:

(gdb) thread apply all bt


or

(start) - play - pause - toggle off - play - pause - toggle on - play:

ERROR (0x9496330 - 0:00:23.524412000)        basesink( 3126)
gstbasesink.c(518):gst_base_sink_handle_object:<xvimagesink0> received buffer
without a discont
Comment 1 Ronald Bultje 2005-08-08 15:27:42 UTC
Created attachment 50397 [details]
testcase

Compile using:

gcc -o vis vis.c $(pkg-config --cflags --libs gtk+-2.0 gstreamer-0.9)

Run using:

./vis /path/to/vorbis-file.ogg
Comment 2 Wim Taymans 2006-01-25 14:31:41 UTC
linking/unlinking at runtime breaks streaming. The proper way to dynamically relink is to block the pad so no dataflow happens, then relink. Also newsegments get lost when pushed on an unlinked pad, this could be fixed by resending the newsegment when the pad is linked. 
Comment 3 Ronald Bultje 2006-01-25 17:50:16 UTC
fine, can you update my example to reflect that? I have no idea what you mean and will most likely produce another non-working example, either because of my ignorance or because of core bugs.
Comment 4 Wim Taymans 2006-02-16 15:45:30 UTC
see playbin in 0.10.4 to do on-the-fly switching of vis-plugins, can't update example since goom is so broken :(.