buffer ownership when pushing to appsrc

Sebastian Dröge sebastian at centricular.com
Fri Jan 5 21:06:00 UTC 2018


On Fri, 2018-01-05 at 15:38 -0500, Nicolas Dufresne wrote:
> [...]
> >  
> >  
> > So, thanks for your attention, hope to clear this moment.
> 
> Unless I'm missing something, it looks like a bug in the tutorial.
> Can you file a bug at bugs.gnome.org ?

No, this is actually correct. gst_app_src_push_buffer() the function
takes ownership of the buffer, the signal doesn't and can't. Signal
arguments are only borrowed by the signal handlers, ownership stays
with the signal emitter.

-- 
Sebastian Dröge, Centricular Ltd · https://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180105/4a223812/attachment.sig>


More information about the gstreamer-devel mailing list