mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
screen-cast/src: Use G_USEC_PER_SEC instead of 1000000
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1351
This commit is contained in:
parent
e8052f169b
commit
0c6ac287e6
@ -515,8 +515,9 @@ meta_screen_cast_stream_src_maybe_record_frame (MetaScreenCastStreamSrc *src,
|
|||||||
int64_t min_interval_us;
|
int64_t min_interval_us;
|
||||||
int64_t time_since_last_frame_us;
|
int64_t time_since_last_frame_us;
|
||||||
|
|
||||||
min_interval_us = ((1000000 * priv->video_format.max_framerate.denom) /
|
min_interval_us =
|
||||||
priv->video_format.max_framerate.num);
|
((G_USEC_PER_SEC * priv->video_format.max_framerate.denom) /
|
||||||
|
priv->video_format.max_framerate.num);
|
||||||
|
|
||||||
time_since_last_frame_us = now_us - priv->last_frame_timestamp_us;
|
time_since_last_frame_us = now_us - priv->last_frame_timestamp_us;
|
||||||
if (time_since_last_frame_us < min_interval_us)
|
if (time_since_last_frame_us < min_interval_us)
|
||||||
|
Loading…
Reference in New Issue
Block a user