From: Mike Brady Date: Wed, 30 May 2018 14:00:37 +0000 (+0100) Subject: Add yet more debugging to the TEARDOWN sequence. X-Git-Tag: 3.2RC11~3^2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f018a18495abe40a30ec9f020031cfd1177a8aea;p=thirdparty%2Fshairport-sync.git Add yet more debugging to the TEARDOWN sequence. --- diff --git a/player.c b/player.c index 8e51c9c3..9e5dce1f 100644 --- a/player.c +++ b/player.c @@ -2679,11 +2679,15 @@ int player_play(rtsp_conn_info *conn) { } int player_stop(rtsp_conn_info *conn) { + debug(3,"player_stop"); pthread_rwlock_wrlock(&conn->player_thread_lock); + debug(3,"player_thread_lock acquired"); if (conn->player_thread) { + debug(3,"player_thread exists"); conn->player_thread_please_stop = 1; pthread_cond_signal(&conn->flowcontrol); // tell it to give up pthread_kill(*conn->player_thread, SIGUSR1); + debug(3,"player_thread signalled"); pthread_join(*conn->player_thread, NULL); free(conn->player_thread); conn->player_thread = NULL;