[gst-devel] [gstreamer] Problem with pulling data from a sink pad
Ronald Bultje
rbultje at ronald.bitfreak.net
Tue Dec 23 14:01:01 CET 2003
On Tue, 2003-12-23 at 17:11, iain wrote:
> mmapping huge data to disk so that I can jump around it at will
> without having to send a seek event, run the pipeline to get 2 frames of
> data, send another seek event, run pipeline again...
Iain, you seem to think that this causes a huge load, but it doesn't.
It's really only a protocol. A protocol implemented through simple
virtual functions and function implementations. And the filesrc virtual
function implementation for the 'seek' event is fseek(). There really is
only very light overhead of the event creation and disposal, which I'm
sure you know aren't malloc()'ed but memchunk-types, so this is
extremely light. Add to that that the kernel *does* actually do a lot of
data processing before the actual disk seek is being done, and I'm sure
you'll get my point.
It *looks* heavy. But it isn't.
Ronald
--
Ronald Bultje <rbultje at ronald.bitfreak.net>
Linux Video/Multimedia developer
More information about the gstreamer-devel
mailing list