Bandaid fix to avoid unlocking a non-locked mutex.
PTHREAD_MUTEX_STRICT_NP is merciless ;-)
This commit is contained in:
parent
c37807dc6b
commit
dc08854ae2
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.32 2012/04/16 13:09:26 dcoppa Exp $
|
||||
# $OpenBSD: Makefile,v 1.33 2012/04/19 21:39:08 dcoppa Exp $
|
||||
|
||||
COMMENT = console client for pandora
|
||||
|
||||
DISTNAME = pianobar-2012.03.17
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
REVISION = 2
|
||||
REVISION = 3
|
||||
CATEGORIES = audio
|
||||
|
||||
MAINTAINER = David Coppa <dcoppa@openbsd.org>
|
||||
|
14
audio/pianobar/patches/patch-src_ui_act_c
Normal file
14
audio/pianobar/patches/patch-src_ui_act_c
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-src_ui_act_c,v 1.1 2012/04/19 21:39:08 dcoppa Exp $
|
||||
|
||||
Bandaid fix to avoid unlocking a non-locked mutex.
|
||||
|
||||
--- src/ui_act.c.orig Thu Apr 19 22:12:37 2012
|
||||
+++ src/ui_act.c Thu Apr 19 22:14:18 2012
|
||||
@@ -50,6 +50,7 @@ static inline void BarUiDoSkipSong (struct audioPlayer
|
||||
assert (player != NULL);
|
||||
|
||||
player->doQuit = 1;
|
||||
+ pthread_mutex_trylock (&player->pauseMutex);
|
||||
pthread_mutex_unlock (&player->pauseMutex);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user