basesrc: add fill vmethod to basesrc
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 10 Jun 2011 11:04:23 +0000 (13:04 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 10 Jun 2011 11:04:23 +0000 (13:04 +0200)
commitc35e0de65ee45b9ce684c6c50cf1ab92768d22f3
treeed4b8705f349e4ade6408a38bfc378d0230e7daf
parent2d28891528a5a8ea7434617c00e0822f365e35b6
basesrc: add fill vmethod to basesrc

Add a new fill virtual method to basesrc. The purpose of this method is to fill
a provided buffer with data.
Add a default implementation of the create method that allocates a buffer and
calls the fill method on it. This would allow the base class to implement
bufferpool and allocator negotiation on behalf of the subclasses.
Fix the blocksize property.
Make filesrc use the new fill method.
libs/gst/base/gstbasesrc.c
libs/gst/base/gstbasesrc.h
plugins/elements/gstfilesrc.c