Seeking on custom bins

Sebastian Dröge sebastian at centricular.com
Tue May 6 12:15:57 PDT 2014


On Fr, 2014-05-02 at 17:14 -0700, waldemar wrote:
> I'm trying to use gst_element_seek in the context of a PAUSED non yet owned
> by a pipeline custom bin.
> 
> Most of the code I've found describes seeking events in the context of a
> pipeline, but here I'm trying to have this custom bin prerolled, positioned
> and ready to come and play right after is added to the pipeline.
> 
> How can I listen to messages like ASYNC_DONE called when using
> gst_element_seek with GST_SEEK_FLASH_FLUSH in the context of a parent-less
> custom bin??
> 
> I'm guessing I'll have to wait for such event because it tells you when the
> seek event is finished, then I can add the custom bin to a playing pipeline.

You can just set a bus yourself on the bin and then listen for these
messages on that bus. Once everything is done you can remove the bus
again (set it to NULL) and add the bin to your pipeline.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140506/30c15971/attachment.sig>


More information about the gstreamer-devel mailing list