[aravis] viewer: use host time for buffer timestamp before sending them to appsrc
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] viewer: use host time for buffer timestamp before sending them to appsrc
- Date: Tue, 15 Apr 2014 08:25:22 +0000 (UTC)
commit c77dda9ecce3616085978342869809c1be80b9d9
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Tue Apr 15 10:23:30 2014 +0200
viewer: use host time for buffer timestamp before sending them to appsrc
It fixes issue with PointGrey blackfly cameras, where TimingTickFrequency
register returns a wrong value, leading to incorrect timestamp in buffers.
viewer/arvviewer.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/viewer/arvviewer.c b/viewer/arvviewer.c
index 6eb8722..6601e57 100644
--- a/viewer/arvviewer.c
+++ b/viewer/arvviewer.c
@@ -153,6 +153,8 @@ arv_viewer_new_buffer_cb (ArvStream *stream, ArvViewer *viewer)
arv_row_stride = arv_buffer->width * ARV_PIXEL_FORMAT_BIT_PER_PIXEL
(arv_buffer->pixel_format) / 8;
+ arv_buffer->timestamp_ns = g_get_real_time () * 1000LL;
+
/* Gstreamer requires row stride to be a multiple of 4 */
if ((arv_row_stride & 0x3) != 0) {
int gst_row_stride;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]