ext/alsa/gstalsasink.c: Revert patch that makes the sink hold the object lock when...
authorTim-Philipp Müller <tim@centricular.net>
Tue, 12 Feb 2008 20:09:07 +0000 (20:09 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 12 Feb 2008 20:09:07 +0000 (20:09 +0000)
Original commit message from CVS:
* ext/alsa/gstalsasink.c: (gst_alsasink_delay):
Revert patch that makes the sink hold the object lock when
calling snd_pcm_delay(), since it breaks playback for me.

ChangeLog
ext/alsa/gstalsasink.c

index 35a2047..c504e1f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-02-12  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * ext/alsa/gstalsasink.c: (gst_alsasink_delay):
+         Revert patch that makes the sink hold the object lock when
+         calling snd_pcm_delay(), since it breaks playback for me.
+
 2008-02-12  Julien Moutte  <julien@fluendo.com>
 
        * tests/examples/seek/seek.c: (rate_spinbutton_changed_cb): Add
index 9d57be5..35347f4 100644 (file)
@@ -856,9 +856,7 @@ gst_alsasink_delay (GstAudioSink * asink)
 
   alsa = GST_ALSA_SINK (asink);
 
-  GST_ALSA_SINK_LOCK (asink);
   res = snd_pcm_delay (alsa->handle, &delay);
-  GST_ALSA_SINK_UNLOCK (asink);
   if (G_UNLIKELY (res < 0)) {
     GST_DEBUG_OBJECT (alsa, "snd_pcm_delay returned %d", res);
     delay = 0;