[gst-devel] empty buffers & GST_BUFFER_FLAG_GAP

Thomas Vander Stichele thomas at apestaart.org
Wed Jan 18 11:30:02 CET 2006


> >>Is that what GST_BUFFER_FLAG_GAP is for? If not, may I also add
> >>GST_BUFFER_FLAG_BLANK. As part of the proposal I would update GstVolume,
> >>GstLevel, GstAdder and GstAudioconvert to make use of that.
> > 
> > The GAP flag was added to notify elements that this buffer was generated
> > by some element to indicate that this buffer was inserted into the
> > stream to fill a gap. Audiorate for example sets this flag when it needs
> > to insert buffers to make a perfect stream. Not sure why we would ever
> > need this, it was a feature request from Thomas, I'm sure he has a use
> > case somewhere.

My brain is a bit mushy today because of all the snot, but
docs/random/thomasvs/capturing contains info on it.  The basic idea is
that for some scenarios, you need to turn a stream with various
deficiencies into a "perfect stream", which I defined as a stream that
is both time- and offset-contiguous.

That document contains the use cases where this is needed; I'll reread
it myself when my brain allows me to :)


Dave/Dina : future TV today ! - http://www.davedina.org/
<-*- thomas (dot) apestaart (dot) org -*->
Cos I feel like a fake when I feel
any feeling
And I wouldn't wanna happen to you
Cos I know that you mean it
<-*- thomas (at) apestaart (dot) org -*->
URGent, best radio on the net - 24/7 ! - http://urgent.fm/

More information about the gstreamer-devel mailing list