gst_buffer_resize (dest, 0, gst_buffer_get_size (src));
}
+ gst_buffer_copy_into (dest, src, GST_BUFFER_COPY_TIMESTAMPS, 0, -1);
+
GST_CAT_LOG_OBJECT (GST_CAT_PERFORMANCE, pool, "slow copy into buffer %p",
dest);
{
GstV4l2MemoryGroup *group = NULL;
const GstV4l2Object *obj = pool->obj;
+ GstClockTime timestamp;
gint index;
if (!gst_v4l2_is_buffer_valid (buf, &group)) {
group->buffer.field = field;
}
+ if (GST_BUFFER_TIMESTAMP_IS_VALID (buf)) {
+ timestamp = GST_BUFFER_TIMESTAMP (buf);
+ GST_TIME_TO_TIMEVAL (timestamp, group->buffer.timestamp);
+ }
+
if (!gst_v4l2_allocator_qbuf (pool->vallocator, group))
goto queue_failed;