Strange pipeline behaviour when assigning capabilities to plugin source pad

Sebastian Dröge sebastian at centricular.com
Wed Oct 30 20:48:54 CET 2013


On Mi, 2013-10-30 at 18:58 +0000, Terence Neill wrote:
> Thanks for the reply, I have traced the problem.  It was caused by the
> component "mytestcomponent" modifying the caps data on its input
> buffers before passing the buffers on.  When running multiple
> instances of "mytestcomponent" they all ended up modifying the same
> buffer with predictably nasty results.

Ah yes, you need to make sure a buffer is actually writable before
changing it. Use buf = gst_buffer_make_writable(buf) for that.

-- 
Sebastian Dröge <sebastian at centricular.com>
Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131030/4a14d3ab/attachment.pgp>


More information about the gstreamer-devel mailing list