On Wed, 2016-08-31 at 04:50 -0700, BogdanS wrote:
>
> I tried
> buffrer= gst_buffer_new_wraped(outbuf,outsize);
> gst_app_src_push_buffer(appsrc,buffer);
>
> But every time I have memory exception.
That function takes ownership of the memory you pass it and will call
g_free() on it after its no longer in use.
Your API looks like the outbuf is only valid in the scope of the
function, so you would have to copy it first before putting it into a
GstBuffer or GstMemory.
If you had API that has refcounting or otherwise allows you to notify
the caller about when the memory is not in use anymore, you could use
gst_buffer_new_wrapped_full() without copying but a custom function to
"free" the memory.
--
Sebastian Dröge, Centricular Ltd ·
http://www.centricular.com_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel