seek event in a pipeline with multiple source bins

Sebastian Dröge sebastian at centricular.com
Mon Jun 27 07:41:02 UTC 2016


On Mo, 2016-06-27 at 10:39 +0300, Sebastian Dröge wrote:
> On Sa, 2016-06-25 at 08:30 -0600, Natanael Mojica wrote:
> >  
> > all the pipeline works fine until a filesrc bin finish the read a
> > file and send a eos, and I need the file is playing every time, from
> > begining until the end and from the begining again, every time until
> > the bin will deleted from the aplication thread.
> 
> Try using SEGMENT seeks for looping. You can find a short example here:
> https://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/icles/test-segment-seeks.c
> 
> This skips forward with seeks but it can be trivially adjusted to loop
> the seek segment instead by using different seek positions.

Also just send a SEEK event to the source pad that is connected to the
input-selector, otherwise you will seek on all of the input-selector
sources.

-- 

Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160627/98d6a613/attachment.sig>


More information about the gstreamer-devel mailing list