Patchwork [meta-fsl-arm,v2,2/3] pulseaudio: Fix mutext issue when do pause in gstreamer

login
register
mail settings
Submitter Jun Zhu
Date Aug. 1, 2014, 6:18 a.m.
Message ID <1406873886-30571-2-git-send-email-R01007@freescale.com>
Download mbox | patch
Permalink /patch/77063/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Jun Zhu - Aug. 1, 2014, 6:18 a.m.
Pulseaudio crashes when other program using sound:
Assertion 'pthread_mutex_unlock(&m->mutex) == 0' failed
at pulsecore/mutex-posix.c:106, function pa_mutex_unlock().

Disable the feature PTHREAD priority inheritance is the easiest
workaround for this issue.

Signed-off-by: Jun Zhu <R01007@freescale.com>
---
 .../pulseaudio/pulseaudio_5.0.bbappend             |    1 +
 1 file changed, 1 insertion(+)
Otavio Salvador - Aug. 1, 2014, 1:09 p.m.
On Fri, Aug 1, 2014 at 3:18 AM, Jun Zhu <R01007@freescale.com> wrote:
> Pulseaudio crashes when other program using sound:
> Assertion 'pthread_mutex_unlock(&m->mutex) == 0' failed
> at pulsecore/mutex-posix.c:106, function pa_mutex_unlock().
>
> Disable the feature PTHREAD priority inheritance is the easiest
> workaround for this issue.
>
> Signed-off-by: Jun Zhu <R01007@freescale.com>

I am fine with this patch, please rebase it to it not depend on 1/3 to
be applied so we include it in master-next for testing.

Patch

diff --git a/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend b/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend
index 1774224..81b03f6 100644
--- a/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend
+++ b/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend
@@ -18,3 +18,4 @@  do_install_append_mx6 () {
     fi
 }
 
+CACHED_CONFIGUREVARS_append_mx6 = " ax_cv_PTHREAD_PRIO_INHERIT=no"