mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
ext/alsa/gstalsasink.c: Take appropriate lock when calling alsa methods.
Original commit message from CVS: 2008-02-11 Julien Moutte <julien@fluendo.com> Patch by: Alan Peevers <peeves@pacbell.net> * ext/alsa/gstalsasink.c: (gst_alsasink_delay): Take appropriate lock when calling alsa methods.
This commit is contained in:
parent
cfe66ed251
commit
f2f327d181
3 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-02-11 Julien Moutte <julien@fluendo.com>
|
||||
|
||||
Patch by: Alan Peevers <peeves@pacbell.net>
|
||||
|
||||
* ext/alsa/gstalsasink.c: (gst_alsasink_delay): Take appropriate
|
||||
lock when calling alsa methods.
|
||||
|
||||
2008-02-11 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/typefind/gsttypefindfunctions.c:
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 961bb6bd997d7c8da6058534e86b4a1361c0fcea
|
||||
Subproject commit 05a617c9043ddb78f8578195b18c166d7e1d4c2e
|
|
@ -849,7 +849,9 @@ 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;
|
||||
|
|
Loading…
Reference in a new issue