From 0b9c0ac78dc4639ad83645272667b950940f2313 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 6 Jul 2011 13:26:01 +0200 Subject: [PATCH] omx: Use G_USEC_PER_SEC for clarity instead of 1000000 --- omx/gstomx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/omx/gstomx.c b/omx/gstomx.c index 0430e72..3493f6a 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -470,7 +470,7 @@ gst_omx_component_get_state (GstOMXComponent * comp, GstClockTime timeout) } if (timeout != GST_CLOCK_TIME_NONE) { - glong add = timeout / 1000; + glong add = timeout / (GST_SECOND / G_USEC_PER_SEC); if (add == 0) goto done; @@ -831,7 +831,7 @@ gst_omx_port_set_flushing (GstOMXPort * port, gboolean flush) } g_get_current_time (&abstimeout); - g_time_val_add (&abstimeout, 5 * 10000000); + g_time_val_add (&abstimeout, 5 * G_USEC_PER_SEC); timeval = &abstimeout; GST_DEBUG_OBJECT (comp->parent, "Waiting for 5s"); @@ -1124,7 +1124,7 @@ gst_omx_port_set_enabled_unlocked (GstOMXPort * port, gboolean enabled) } g_get_current_time (&abstimeout); - g_time_val_add (&abstimeout, 5 * 10000000); + g_time_val_add (&abstimeout, 5 * G_USEC_PER_SEC); timeval = &abstimeout; GST_DEBUG_OBJECT (comp->parent, "Waiting for 5s"); -- 2.7.4