How to reset time in elements when pipeline is running ?
stic at free.fr
stic at free.fr
Wed Sep 17 06:35:57 PDT 2014
What I understand is that I need to send a new segment. Is it correct ?
I can see from gnlghostpad that they set segment.base with next_base_time ... but what it next_base_time ?
So do I have to send a new segment and changing its base time to last pipeline clock ??
thank you
----- Mail original -----
De: "Nicolas Dufresne" <nicolas.dufresne at collabora.com>
À: gstreamer-devel at lists.freedesktop.org
Envoyé: Mardi 16 Septembre 2014 18:17:15
Objet: Re: How to reset time in elements when pipeline is running ?
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
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list