mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 12:02:27 +00:00
motioncells: Port to g_get_current_time
This is more portable. https://bugzilla.gnome.org/show_bug.cgi?id=751221
This commit is contained in:
parent
58ce6d50a0
commit
55a5c5f7df
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -106,7 +106,7 @@ struct _GstMotioncells
|
|||
guint64 consecutive_motion;
|
||||
gint width, height;
|
||||
//time stuff
|
||||
struct timeval tv;
|
||||
GTimeVal tv;
|
||||
double framerate;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue