experiment with different startup regimes
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user