Mysterious issue with gst_buffer_make_writable.
Sebastian Dröge
sebastian at centricular.com
Wed Apr 22 06:42:51 PDT 2015
On Mo, 2015-04-20 at 11:29 -0400, Stirling Westrup wrote:
> Right now we have a piece of code in a transformation element where we call
>
> buffer = gst_buffer_make_writable(buffer);
>
> Where that line appears to corrupt something such that, after passing on
> the buffer, when it eventually gets used and unrefed, we get an assertion
> error that its not a valid buffer.
>
> However, if we replace that line with
>
> if( !gst_buffer_is_writable(buffer) )
> GST_ERROR("Oh Noes!");
>
> then everything works fine. Any idea what could be going on?
Do you have a testcase for reproducing this? Only thing I can think of
is that you don't actually own a reference to that buffer there.
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150422/e42b903d/attachment-0001.sig>
More information about the gstreamer-devel
mailing list