[prev in list] [next in list] [prev in thread] [next in thread]
List: gstreamer-devel
Subject: Re: [gst-devel] Loop-based elements and pause state
From: Daniel Gazard <dany42 () free ! fr>
Date: 2004-08-19 5:03:11
Message-ID: 86smajbtyo.fsf () macphisto ! dan ! homeunix ! net
[Download RAW message or body]
David Schleef <ds@schleef.org> writes:
> On Wed, Aug 18, 2004 at 10:33:33PM +0200, Daniel Gazard wrote:
>> I have wrote a GStreamer loop-based plugin, i.e. an element that enter
>> into an infinite processing loop (by opposition to chain-based
>> plugin).
>
> Loop-based elements are not "infinite loops", they are supposed to
> do as little as possible and then return. Infinite-loop elements
> will fail miserably.
So the documentation have to be updated since I can read in the
«Loop-based elements» section:
As opposed to chain-based elements, loop-based elements enter an
infinite loop that looks like this:
GstBuffer *buffer, *outbuffer;
while (1) {
buffer = gst_pad_pull (sinkpad);
...
// process buffer, create outbuffer
while (!done) {
....
// optionally request another buffer
buffer = gst_pad_pull (sinkpad);
....
}
...
gst_pad_push (srcpad, outbuffer);
}
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic