GNOME Bugzilla – Bug 313424
Adding/removing from pipeline
Last modified: 2006-02-08 01:25:06 UTC
Version details: 13.09.2005 CVS Distribution/Version: archlinux 1. Create a pipeline that's supposed to play some video (ie. filesrc ! dvdec .video ! fakesink) 2. Set the pipeline to PAUSED 3. Set the pipeline to READY 4. Remove elements from the pipeline and destroy the pipeline 5. Add the elements back to a new pipeline (ie. filesrc ! dvdec. video ! xvimagesink) 6. Set the new pipeline to PAUSED Fails with: (in case of xvimagesink) ERROR (0x80c6620 - 0:00:00.106941000) xvimagesink(29763) xvimagesink.c(366):gst_xvimagesink_xvimage_new:<xvimagesink1> could not get shared memory of 0 bytes X Error of failed request: BadShmSeg (invalid shared segment parameter) Major opcode of failed request: 149 (MIT-SHM) Minor opcode of failed request: 2 (X_ShmDetach) Segment id in failed request: 0x0 Serial number of failed request: 22 Current serial number in output stream: 23 This is valid at least for (dvdec) and (avidemux ! jpegdec) constructions. With simplier elements (videotestsrc, sinesrc) all works like expected. I'm attaching a simple test case that triggers the error (C). For the purpose of the example it's very simple. I bumped on that while trying to do more complicated things (decodebin based bins added/removed from pipelines)
Created attachment 50662 [details] A test case program. Requires a .dv file to test.
The testcase code is obsolete. Michael, is the bug itself still valid?
Nope. I'm not sure what I needed that for anyways.