[gst-devel] neutral buffer handling in sparse streams

Stefan Kost ensonic at hora-obscura.de
Wed Oct 3 08:24:29 CEST 2007


hi,

Quoting David Schleef <ds at schleef.org>:

> On Mon, Oct 01, 2007 at 10:33:35PM +0300, Stefan Kost wrote:
>> So what the way to go?
>>
>> 1) use GST_BUFFER_FLAG_GAP and define it as such
>> btw. its right now only used in   
>> gst-plugins-base/gst/audiorate/gstaudiorate.c to
>> mark a silent filler-buffer
>>
>> 2) add GST_BUFFER_FLAG_NEUTRAL
>>
>> 3) segments
>>
>> 4) anything else?
>
> 5) Push subbuffers of a well-known read-only buffer containing only
> zeros.  (Let's call it gst_buffer_zero.)
>
Interesting idea. We could subclass GstBuffer as GstZeroBuffer and  
then elements can check with GST_IS_ZERO_BUFFER.
>
> I'm not recommending it, just suggesting it as an alternative that we've
> discussed in the past.  It has the minor advantage of being transparent
> to elements that don't know how to handle it.
>
>
>
> dave...
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>






More information about the gstreamer-devel mailing list