OSDN Git Service
(root)
/
android-x86
/
external-alsa-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09f5c75
)
pcm_share: fixing missing mutex unlock
author
Renu Tyagi
<renu.tyagi@samsung.com>
Tue, 23 Sep 2014 07:05:39 +0000
(09:05 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 23 Sep 2014 07:05:39 +0000
(09:05 +0200)
Signed-off-by: renu tyagi <renu.tyagi@samsung.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_share.c
patch
|
blob
|
history
diff --git
a/src/pcm/pcm_share.c
b/src/pcm/pcm_share.c
index
c301c7a
..
4b68f1f
100644
(file)
--- a/
src/pcm/pcm_share.c
+++ b/
src/pcm/pcm_share.c
@@
-369,6
+369,7
@@
static void *snd_pcm_share_thread(void *data)
err = pipe(slave->poll);
if (err < 0) {
SYSERR("can't create a pipe");
+ Pthread_mutex_unlock(&slave->mutex);
return NULL;
}
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);
if (err < 0) {
SYSERR("snd_pcm_sw_params error");
+ Pthread_mutex_unlock(&slave->mutex);
return NULL;
}
}