]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Add yet more debugging to the TEARDOWN sequence.
authorMike Brady <mikebrady@eircom.net>
Wed, 30 May 2018 14:00:37 +0000 (15:00 +0100)
committerMike Brady <mikebrady@eircom.net>
Wed, 30 May 2018 14:00:37 +0000 (15:00 +0100)
player.c

index 8e51c9c30b6ef8454cf2ea14263fcc24fefc0b98..9e5dce1f927709c9047aefe5cc4c352427c93586 100644 (file)
--- 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;