[gst-devel] Documentation for create a src element
Tim-Philipp Müller
t.i.m at zen.co.uk
Sat Sep 4 20:41:29 CEST 2010
On Sat, 2010-09-04 at 20:20 +0200, Mateo Matachana López wrote:
Hi,
> I have implemented the _start, _query and _change_state functions where
> I mostly do the setup of the protocol (contact the tracker, get the
> media description, etc.) but I don't know how to pass the streamed
> (received) data to the next GStreamer element.
It shouldn't be needed to implement/override GstElement::change_state(),
just implement GstBaseSrc::start() and ::stop() instead.
> How can I pass data to the next GStreamer element? Should I push the
> data or GStreamer tolds the SrcObject when it should push data?
You should implement GstPushSrc::create(), from where you can return
your buffer. (Note: not GstBaseSrc::create()).
Cheers
-Tim
More information about the gstreamer-devel
mailing list