How to reset time in elements when pipeline is running ?

Nicolas Dufresne nicolas.dufresne at collabora.com
Tue Sep 16 09:17:15 PDT 2014


Le 2014-09-16 12:06, stic at free.fr a écrit :
> I am not sure where to look... I look into gnlcomposition around herehttp://cgit.freedesktop.org/gstreamer/gnonlin/tree/gnl/gnlcomposition.c#n707, but that's not very clear to me.
> Can you be more specific about where to look or about the logic to apply ?

Have a look at gnlghostpad.c. The translate_incoming_segment() and 
translate_outgoing_segment() method. There is also method to translate 
seek. The general idea is that if you change the source, the new segment 
will start from 0 again, so you need to make it seamlessly continuous by 
adjusting the segment offset. You use might be a little simplier then 
gnl though.

Nicolas



More information about the gstreamer-devel mailing list