From 49ab2a3ce4efd79358406bb3b9ffb81b51085aff Mon Sep 17 00:00:00 2001 From: Kai Elwert Date: Mon, 24 Jun 2013 17:13:10 +0200 Subject: [PATCH] Allow playback on non apple airplay devices --- src/player.c | 3 +++ src/raop.c | 5 +++++ src/raop.h | 1 + 3 files changed, 9 insertions(+) diff --git a/src/player.c b/src/player.c index 15bd3df5..6718da1c 100644 --- a/src/player.c +++ b/src/player.c @@ -140,6 +140,7 @@ static const char *raop_devtype[] = "AirPort Express 802.11g", "AirPort Express 802.11n", "AppleTV", + "Other", }; @@ -3719,6 +3720,8 @@ raop_device_cb(const char *name, const char *type, const char *domain, const cha if (strncmp(p, "AppleTV", strlen("AppleTV")) == 0) devtype = RAOP_DEV_APPLETV; + else + devtype = OTHER; no_am: DPRINTF(E_DBG, L_PLAYER, "AirTunes device %s: password: %s, type %s\n", name, (password) ? "yes" : "no", raop_devtype[devtype]); diff --git a/src/raop.c b/src/raop.c index adaff10b..af82f328 100644 --- a/src/raop.c +++ b/src/raop.c @@ -1844,6 +1844,11 @@ raop_session_make(struct raop_device *rd, int family, raop_status_cb cb) rs->auth_quirk_itunes = 0; rs->wants_metadata = 1; break; + case OTHER: + rs->encrypt = 0; + rs->auth_quirk_itunes = 0; + rs->wants_metadata = 0; + break; } rs->ctrl = evrtsp_connection_new(address, port); diff --git a/src/raop.h b/src/raop.h index 5c240e10..a9206682 100644 --- a/src/raop.h +++ b/src/raop.h @@ -20,6 +20,7 @@ enum raop_devtype { RAOP_DEV_APEX_80211G, RAOP_DEV_APEX_80211N, RAOP_DEV_APPLETV, + OTHER, }; struct raop_session;