mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-09 13:30:03 -05:00
pcm_share: fixing missing mutex unlock
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
09f5c75e9c
commit
30f289a8a3
1 changed files with 2 additions and 0 deletions
|
|
@ -369,6 +369,7 @@ static void *snd_pcm_share_thread(void *data)
|
||||||
err = pipe(slave->poll);
|
err = pipe(slave->poll);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
SYSERR("can't create a pipe");
|
SYSERR("can't create a pipe");
|
||||||
|
Pthread_mutex_unlock(&slave->mutex);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
while (slave->open_count > 0) {
|
while (slave->open_count > 0) {
|
||||||
|
|
@ -395,6 +396,7 @@ static void *snd_pcm_share_thread(void *data)
|
||||||
err = snd_pcm_sw_params(spcm, &slave->sw_params);
|
err = snd_pcm_sw_params(spcm, &slave->sw_params);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
SYSERR("snd_pcm_sw_params error");
|
SYSERR("snd_pcm_sw_params error");
|
||||||
|
Pthread_mutex_unlock(&slave->mutex);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue