omx: Use G_USEC_PER_SEC for clarity instead of 1000000
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 6 Jul 2011 11:26:01 +0000 (13:26 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 9 Jul 2011 09:06:05 +0000 (11:06 +0200)
omx/gstomx.c

index 0430e72..3493f6a 100644 (file)
@@ -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");