From ed7b2597a439c27e60d0b4cec85e801c9099173c Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 26 May 2012 15:50:18 +0200 Subject: Move mutex initalization to main thread Closes #250. --- src/player.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/player.c') diff --git a/src/player.c b/src/player.c index 733a315..3877906 100644 --- a/src/player.c +++ b/src/player.c @@ -1,5 +1,5 @@ /* -Copyright (c) 2008-2011 +Copyright (c) 2008-2012 Lars-Dominik Braun Permission is hereby granted, free of charge, to any person obtaining a copy @@ -421,7 +421,6 @@ void *BarPlayerThread (void *data) { WaitressReturn_t wRet = WAITRESS_RET_ERR; /* init handles */ - pthread_mutex_init (&player->pauseMutex, NULL); player->waith.data = (void *) player; /* extraHeaders will be initialized later */ player->waith.extraHeaders = extraHeaders; @@ -500,7 +499,6 @@ void *BarPlayerThread (void *data) { ao_close(player->audioOutDevice); WaitressFree (&player->waith); - pthread_mutex_destroy (&player->pauseMutex); free (player->buffer); player->mode = PLAYER_FINISHED_PLAYBACK; -- cgit v1.2.3