[gst-devel] Resetting base time in part of running pipeline

Arnout Vandecappelle arnout at mind.be
Mon Nov 17 16:25:58 CET 2008


On Thursday 13 November 2008 16:21:18 Mark Nauwelaerts wrote:
> >  The problem with all three of them is that you need to specify the
> > offset somehow: with the delay property (shift) or with a newsegment
> > (stamp & identity).  However, this offset is not available until the next
> > buffer is received.  I now use the stream position just before the
> > dynamic element replacement, but that's of course off by one buffer.
>
> A buffer probe handler might retrieve this from the 'next buffer' and could
> send a newsegment (or whatever) based on it.

 Writing (copying!) a plugin is simpler :-)


> >  I'll therefore implement a 'resettime' element (based on shift) and add
> > it to -bad.
> >
> >  Two more questions:
> >  * Any better name suggestions than 'resettime'?
> >  * To trigger the reset, I was thinking of a write-only property 'reset'.
> >  Is that the right way to go?
>
> Matters of taste;
> * perhaps dynamicshift ? :)

 Nah.

> * don't know about "right", but similar tricks are known to work ...

 Great!  Done!

 For the sake of the list archives, in case the patch doesn't make it 
into -bad: you can find it at in bugzilla #561224 
http://bugzilla.gnome.org/show_bug.cgi?id=561224

 Regards,
 Arnout


-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  D206 D44B 5155 DF98 550D  3F2A 2213 88AA A1C7 C933




More information about the gstreamer-devel mailing list