appsrc usage (push and pull mode)

Tim Müller tim at centricular.com
Sun Oct 27 23:32:46 CET 2013


On Sun, 2013-10-27 at 21:42 +0000, Sebastian Dröge wrote:

> >   - What is the difference between g_signal_emit_by_name (app->appsrc,
> > "push-buffer", buffer, &ret); and using directly ret =
> > gst_app_src_push_buffer(app->src, buffer); ?
> 
> None at all

Just one tiny difference: g_signal_emit_by_name() does not take
ownership of the buffer (meaning: you have to unref it afterwards),
while gst_app_src_push_buffer() does.

Cheers
 -Tim



More information about the gstreamer-devel mailing list