[empathy] Properly cast buffer and latency times when setting properties
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Properly cast buffer and latency times when setting properties
- Date: Wed, 30 Nov 2011 15:02:09 +0000 (UTC)
commit 2d4ca2150069139ab347bddce5a5c9264c1be3b1
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Nov 30 15:59:36 2011 +0100
Properly cast buffer and latency times when setting properties
This fix a crash on 32 bits system as gcc can't figure out the right size of
the value.
Thanks to Raluca-Elena Podiuc for her help in debugging this.
https://bugzilla.gnome.org/show_bug.cgi?id=665171
src/empathy-audio-sink.c | 5 ++++-
src/empathy-audio-src.c | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-audio-sink.c b/src/empathy-audio-sink.c
index 5ab14b5..d88555f 100644
--- a/src/empathy-audio-sink.c
+++ b/src/empathy-audio-sink.c
@@ -222,7 +222,10 @@ create_sink (EmpathyGstAudioSink *self)
/* Set latency (buffering on the PulseAudio side) of 40ms and transfer data
* in 10ms chunks */
- g_object_set (sink, "buffer-time", 40000, "latency-time", 10000, NULL);
+ g_object_set (sink,
+ "buffer-time", (gint64) 40000,
+ "latency-time", (gint64) 10000,
+ NULL);
return sink;
}
diff --git a/src/empathy-audio-src.c b/src/empathy-audio-src.c
index aa271fa..9a882c1 100644
--- a/src/empathy-audio-src.c
+++ b/src/empathy-audio-src.c
@@ -332,7 +332,7 @@ create_src (void)
empathy_call_set_stream_properties (src, TRUE);
/* Set latency (buffering on the PulseAudio side) of 20ms */
- g_object_set (src, "buffer-time", 20000, NULL);
+ g_object_set (src, "buffer-time", (gint64) 20000, NULL);
return src;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]