ext/alsa/gstalsasink.c: Revert patch that makes the sink hold the object lock when calling snd_pcm_delay(), since it ...

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.
This commit is contained in:
Tim-Philipp Müller 2008-02-12 20:09:07 +00:00
parent 37df642086
commit 20081431d1
2 changed files with 6 additions and 2 deletions

View file

@ -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

View 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;