mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
v4l2: copy and set the actual size of the content
https://bugzilla.gnome.org/show_bug.cgi?id=700282
This commit is contained in:
parent
da95e53c73
commit
16b0fd5ad9
1 changed files with 2 additions and 2 deletions
|
@ -2551,9 +2551,9 @@ gst_v4l2_object_copy (GstV4l2Object * v4l2object, GstBuffer * dest,
|
|||
|
||||
GST_DEBUG_OBJECT (v4l2object->element, "copy raw bytes");
|
||||
gst_buffer_map (src, &map, GST_MAP_READ);
|
||||
gst_buffer_fill (dest, 0, map.data, map.size);
|
||||
gst_buffer_fill (dest, 0, map.data, gst_buffer_get_size (src));
|
||||
gst_buffer_unmap (src, &map);
|
||||
gst_buffer_resize (dest, 0, map.size);
|
||||
gst_buffer_resize (dest, 0, gst_buffer_get_size (src));
|
||||
}
|
||||
GST_CAT_LOG_OBJECT (GST_CAT_PERFORMANCE, v4l2object->element,
|
||||
"slow copy into buffer %p", dest);
|
||||
|
|
Loading…
Reference in a new issue