summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2015-06-22 15:47:18 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2015-06-22 15:48:51 -0400
commit55a5c5f7df7ef37a2924b23337687bbc83cb7744 (patch)
tree5477e6058c8e4fd2cee1fe9f91aa72a6c8b58cf3
parent58ce6d50a0eaa218c4fc7b7aaeb32f45e5b0b0da (diff)
motioncells: Port to g_get_current_time
This is more portable. https://bugzilla.gnome.org/show_bug.cgi?id=751221
-rw-r--r--ext/opencv/gstmotioncells.c2
-rw-r--r--ext/opencv/gstmotioncells.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/opencv/gstmotioncells.c b/ext/opencv/gstmotioncells.c
index 0a3c0c26b..2de99abf7 100644
--- a/ext/opencv/gstmotioncells.c
+++ b/ext/opencv/gstmotioncells.c
@@ -374,7 +374,7 @@ gst_motion_cells_init (GstMotioncells * filter)
filter->prev_buff_timestamp = 0;
filter->cur_buff_timestamp = 0;
filter->diff_timestamp = -1;
- gettimeofday (&filter->tv, NULL);
+ g_get_current_time (&filter->tv);
filter->starttime = 1000 * filter->tv.tv_sec;
filter->previous_motion = FALSE;
filter->changed_datafile = FALSE;
diff --git a/ext/opencv/gstmotioncells.h b/ext/opencv/gstmotioncells.h
index 08eed3e5a..0a7daa019 100644
--- a/ext/opencv/gstmotioncells.h
+++ b/ext/opencv/gstmotioncells.h
@@ -106,7 +106,7 @@ struct _GstMotioncells
guint64 consecutive_motion;
gint width, height;
//time stuff
- struct timeval tv;
+ GTimeVal tv;
double framerate;
};