[gst-devel] Setting different states for subpipelines

Albert Costa costa_albert at yahoo.fr
Wed Nov 26 10:32:10 CET 2008


Hi gstreamer-devels,
I have a question concerning the change of states in the pipeline. 
I have my main pipeline containing 2 video branches:

(subpipeline1): filesrc1 - decodebin1 - ffmpegcolorspace1 - directdrawsink1
(subpipeline2): filesrc2 - decodebin2 - ffmpegcolorspace2 - directdrawsink2

I start each line with a different file and am able now to set a seek for each (thanks to previous gst-devel help). These 2 lines are supposed to run synchronously (the files are played in parallel). My problem now is that when one of the file ends (end of seek reached), I need to set a new file (with a new seek). To do this, I set my main pipeline to state READY, then set the new file name and seek in my branch and then set the state back to PLAYING. But doing so, the other subpipeline looses its position and starts over the file it was playing. I tried therefore to set the main pipeline to PAUSED, then only the subpipeline to be changed in READY (then i set its new file), and finally PLAYING again. But I can't have it working.... Is it possible to have different subparts of the main pipeline in different states, or am I just going wrong direction?
Regards,
Al


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20081126/cd6348c1/attachment.htm>


More information about the gstreamer-devel mailing list