After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 675353 - clarify usage of GST time unit macros
clarify usage of GST time unit macros
Status: RESOLVED FIXED
Product: snappy
Classification: Other
Component: ui
git
Other Linux
: Normal trivial
: ---
Assigned To: Snappy maintainer(s)
Snappy maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-05-03 09:13 UTC by Luis de Bethencourt
Modified: 2012-05-15 09:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luis de Bethencourt 2012-05-03 09:13:01 UTC
g_timeout_add and clutter_actor_animate expect milliseconds but GST_SECOND is in nano. so to fix the units differnce use glib's G_TIME_SPAN_MILLISECOND (which is 1000) to increase code readability.

right now the code uses GST_USECOND instead of 1000 which is a bit weird and hard to read at first glance since that parameter is meant in milliseconds, i.e. 1000 == 1second.