experiment with different startup regimes

This commit is contained in:
Mike Brady
2022-02-28 10:59:41 +11:00
parent 18ed1bda87
commit 0aea810735
3 changed files with 14 additions and 2 deletions
+9
View File
@@ -2687,6 +2687,15 @@ void handle_setup_2(rtsp_conn_info *conn, rtsp_message *req, rtsp_message *resp)
// timingPeerList
if (conn->airplay_stream_category == ptp_stream) {
ptp_send_control_message_string("T"); // incidentally create the named SHM if necessary and remove all previous history
if (ptp_shm_interface_open() == 0) {
debug(1,"shm interface opened successfully!");
} else {
warn("Unable to open the shm interface at SETUP!");
}
debug_log_rtsp_message(2, "SETUP \"PTP\" message", req);
plist_t groupUUID = plist_dict_get_item(messagePlist, "groupUUID");
if (groupUUID) {
+3
View File
@@ -1,6 +1,9 @@
[Unit]
Description=Shairport Sync - AirPlay Audio Receiver
Provides=shairport-sync.service
After=sound.target
Requires=nqptp.service
Wants=nqptp.service
Requires=avahi-daemon.service
After=avahi-daemon.service
Wants=network-online.target
+2 -2
View File
@@ -2213,11 +2213,11 @@ int main(int argc, char **argv) {
#ifdef CONFIG_AIRPLAY_2
ptp_shm_interface_init();
ptp_send_control_message_string("T"); // incidentally create the named SHM and remove all previous history
usleep(100000); // wait for it to get done (?)
usleep(1000000); // wait for it to get done (?)
if (ptp_shm_interface_open() == 0) {
debug(1,"shm interface opened successfully!");
} else {
die("Unable to open the shm interface at startup!");
warn("Unable to open the shm interface at startup!");
}
#endif