]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix a bug whereby volume control changes would be ignored after a pause in playing...
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sun, 10 Sep 2023 10:02:59 +0000 (11:02 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Sun, 10 Sep 2023 10:02:59 +0000 (11:02 +0100)
rtsp.c

diff --git a/rtsp.c b/rtsp.c
index dfa1c668377b166942f66f79c3e02fe523e18efa..57781ec807d86f9b573f344519925c98ba69cf0d 100644 (file)
--- a/rtsp.c
+++ b/rtsp.c
@@ -2727,13 +2727,8 @@ void handle_teardown_2(rtsp_conn_info *conn, __attribute__((unused)) rtsp_messag
       teardown_phase_two(conn);
       debug(2, "Connection %d: TEARDOWN %s -- close the connection complete",
             conn->connection_number, get_category_string(conn->airplay_stream_category));
+      release_play_lock(conn);
     }
-    //} else {
-    //  warn("Connection %d TEARDOWN received without having the player (no ANNOUNCE?)",
-    //       conn->connection_number);
-    //  resp->respcode = 451;
-
-    release_play_lock(conn);
 
     plist_free(messagePlist);
     resp->respcode = 200;