mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
We're till using micros for timestamps.
Original commit message from CVS: We're till using micros for timestamps.
This commit is contained in:
parent
e92b1b7edc
commit
34dc312371
1 changed files with 5 additions and 2 deletions
|
@ -375,8 +375,11 @@ gst_v4lsrc_get (GstPad *pad)
|
||||||
return NULL;
|
return NULL;
|
||||||
GST_BUFFER_DATA(buf) = gst_v4lsrc_get_buffer(v4lsrc, num);
|
GST_BUFFER_DATA(buf) = gst_v4lsrc_get_buffer(v4lsrc, num);
|
||||||
GST_BUFFER_SIZE(buf) = v4lsrc->buffer_size;
|
GST_BUFFER_SIZE(buf) = v4lsrc->buffer_size;
|
||||||
buf->timestamp = v4lsrc->timestamp_soft_sync[num].tv_sec * 1000000000 +
|
|
||||||
v4lsrc->timestamp_soft_sync[num].tv_usec * 1000;
|
g_print ("%lu %lu\n", v4lsrc->timestamp_soft_sync[num].tv_sec, v4lsrc->timestamp_soft_sync[num].tv_usec);
|
||||||
|
|
||||||
|
buf->timestamp = v4lsrc->timestamp_soft_sync[num].tv_sec * 1000000 +
|
||||||
|
v4lsrc->timestamp_soft_sync[num].tv_usec;
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue