[ekiga] Use correct unit of time in the g_usleep calls (thanks for the head-up, Eugen!)



commit 8b30cca84919d844b51423abdddc837aecf879ae
Author: Julien Puydt <jpuydt free fr>
Date:   Thu Jan 17 22:57:10 2013 +0100

    Use correct unit of time in the g_usleep calls (thanks for the head-up, Eugen!)

 lib/engine/audioinput/audioinput-core.cpp   |    2 +-
 lib/engine/audiooutput/audiooutput-core.cpp |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/audioinput/audioinput-core.cpp b/lib/engine/audioinput/audioinput-core.cpp
index 43281b7..947534c 100644
--- a/lib/engine/audioinput/audioinput-core.cpp
+++ b/lib/engine/audioinput/audioinput-core.cpp
@@ -344,7 +344,7 @@ void AudioInputCore::get_frame_data (char *data,
 {
   if (yield) {
     yield = false;
-    g_usleep (5);
+    g_usleep (5 * G_TIME_SPAN_MILLISECOND);
   }
   PWaitAndSignal m_var(core_mutex);
 
diff --git a/lib/engine/audiooutput/audiooutput-core.cpp b/lib/engine/audiooutput/audiooutput-core.cpp
index 0c0e109..f3a25f6 100644
--- a/lib/engine/audiooutput/audiooutput-core.cpp
+++ b/lib/engine/audiooutput/audiooutput-core.cpp
@@ -310,7 +310,7 @@ void AudioOutputCore::set_frame_data (const char *data,
 {
   if (yield) {
     yield = false;
-    g_usleep (5);
+    g_usleep (5 * G_TIME_SPAN_MILLISECOND);
   }
   PWaitAndSignal m_pri(core_mutex[primary]);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]