[ekiga/v4_0] Use correct unit of time in the g_usleep calls (thanks for the head-up, Eugen!)
- From: Eugen Dedu <ededu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/v4_0] Use correct unit of time in the g_usleep calls (thanks for the head-up, Eugen!)
- Date: Mon, 18 Feb 2013 20:18:44 +0000 (UTC)
commit 6362925cb695e523a22f08e32b8522b557c2becc
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 a6a5e90..46e9cdd 100644
--- a/lib/engine/audioinput/audioinput-core.cpp
+++ b/lib/engine/audioinput/audioinput-core.cpp
@@ -346,7 +346,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 9f40325..685eb56 100644
--- a/lib/engine/audiooutput/audiooutput-core.cpp
+++ b/lib/engine/audiooutput/audiooutput-core.cpp
@@ -308,7 +308,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]