[gst-devel] querry : copying an ordinary buffer to GstBuffer
arnabsamanta at tataelxsi.co.in
Mon Sep 22 12:27:08 CEST 2008
how can i copy the contents of an ordinary buffer created in C++ to the
i have the following.... can any body tell me if its correct
get_data(void *buffer, size_t frame)
GstBuffer *gst_buffer ;
gst_buffer = gst_buffer_new_and_alloc (frame);
memcpy(gst_buffer , buffer, frame);
where buffer is the memory segment created by the previous function by
i did so as i guess ,
gst_buffer = GST_BUFFER_CAST(buffer);
gst_buffer = GST_BUFFER_DATA(buffer)
wont work because "buffer" is not a n GST type buffer.
is my understanding as stated above is correct ?
if wrong , can any body tell me the correct way ?
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.
More information about the gstreamer-devel