GST_RTP_HEADER_SEQ (data) = 0;
GST_RTP_HEADER_TIMESTAMP (data) = 0;
GST_RTP_HEADER_SSRC (data) = 0;
- gst_memory_unmap (mem, data, len);
+ gst_memory_unmap (mem);
gst_buffer_take_memory (buffer, -1, mem);
}
* gst_video_meta_unmap:
* @meta: a #GstVideoMeta
* @plane: a plane
- * @data: the data to unmap
*
- * Unmap previously mapped data with gst_video_meta_map().
+ * Unmap a previously mapped plane with gst_video_meta_map().
*
* Returns: TRUE if the memory was successfully unmapped.
*/
gboolean
-gst_video_meta_unmap (GstVideoMeta * meta, guint plane, gpointer data)
+gst_video_meta_unmap (GstVideoMeta * meta, guint plane)
{
guint offset;
GstBuffer *buffer;
GstMemory *mem;
- guint8 *base;
g_return_val_if_fail (meta != NULL, FALSE);
g_return_val_if_fail (plane < meta->n_planes, FALSE);
offset = meta->offset[plane];
mem = find_mem_for_offset (buffer, &offset, GST_MAP_READ);
- base = data;
- gst_memory_unmap (mem, base - offset, -1);
+ gst_memory_unmap (mem);
return TRUE;
}
gpointer (*map) (GstVideoMeta *meta, guint plane, gint *stride,
GstMapFlags flags);
- gboolean (*unmap) (GstVideoMeta *meta, guint plane, gpointer data);
+ gboolean (*unmap) (GstVideoMeta *meta, guint plane);
};
const GstMetaInfo * gst_video_meta_get_info (void);
gpointer gst_video_meta_map (GstVideoMeta *meta, guint plane, gint *stride,
GstMapFlags flags);
-gboolean gst_video_meta_unmap (GstVideoMeta *meta, guint plane, gpointer data);
+gboolean gst_video_meta_unmap (GstVideoMeta *meta, guint plane);
/**
* GstVideoCropMeta:
if (meta) {
for (i = 0; i < frame->info.finfo->n_planes; i++) {
- gst_video_meta_unmap (meta, i, frame->data[i]);
+ gst_video_meta_unmap (meta, i);
}
} else {
guint8 *data;