]> git.0d.be Git - empathy.git/commitdiff
Properly cast buffer and latency times when setting properties
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 30 Nov 2011 14:59:36 +0000 (15:59 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 30 Nov 2011 15:01:51 +0000 (16:01 +0100)
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
src/empathy-audio-src.c

index 5ab14b541a636a8d7c0619fe08d6f64d3446f38c..d88555fe5dc2a1956f84fbd4a81207f938efa453 100644 (file)
@@ -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;
 }
index aa271fa1c067680d578b7a37a39d03bdf09e115f..9a882c1466e471c7b2b4e0e8f5efb23563399716 100644 (file)
@@ -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;
 }