Accessing Buffer Data in GStreamer 1.0
In GStreamer 1.0, the function 'GST_BUFFER_DATA_PTR' is not explicitly declared like in older versions. However, you can still access the data pointer of a buffer using the 'data' member of the 'GstBuffer' structure.
Here's an example of how you can get the data pointer in GStreamer 1.0:
GstBuffer *buffer;
guint8 *data;
// Obtain a buffer
buffer = ...;
// Get the data pointer
data = GST_BUFFER_DATA(buffer);
The 'GST_BUFFER_DATA' macro expands to access the 'data' member of the 'GstBuffer' structure.
原文地址: http://www.cveoy.top/t/topic/c2qr 著作权归作者所有。请勿转载和采集!