invalid buffer size

Sebastian Dröge sebastian at centricular.com
Tue Dec 31 00:59:40 PST 2013


On Mo, 2013-12-30 at 12:16 +0100, stic at free.fr wrote:
> Hi,
> 
> I have a problem with a custom source element.
> If the size of produced data is increased then I have following error:
> video-frame.c:149:gst_video_frame_map_id invalid buffer size 245760 < 752640
> 
> Seems logical, but is there a way to easily reset the buffer size in the element ?
> I can't figure how to do that.

Depending on how the buffer is allocated, who owns it, etc. you can call
gst_buffer_resize() to reset its size. The v4l2 elements do that for
example when the buffers go back into the buffer pool.

How is this Android related btw?

-- 
Sebastian Dröge, 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-android/attachments/20131231/82714f6b/attachment.pgp>


More information about the gstreamer-android mailing list