Skip to content

Commit

Permalink
[daap] Fix for Apple Music/iTunes not working on Airplay host
Browse files Browse the repository at this point in the history
OwnTone selects ALAC for daap streaming because it thinks the client is an Airplay speaker.

Regression in 28.10 coming from PR #1698.

Fixes #1816
  • Loading branch information
ejurgensen committed Sep 29, 2024
1 parent ba4b2c8 commit 73864e8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/httpd_daap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,6 @@ daap_reply_songlist_generic(struct httpd_request *hreq, int playlist)
const char *accept_codecs;
const char *tag;
size_t len;
enum transcode_profile spk_profile;
enum transcode_profile profile;
struct transcode_metadata_string xcode_metadata;
struct media_quality quality = { 0 };
Expand Down Expand Up @@ -1223,10 +1222,6 @@ daap_reply_songlist_generic(struct httpd_request *hreq, int playlist)
accept_codecs = httpd_header_find(hreq->in_headers, "Accept-Codecs");
}

spk_profile = httpd_xcode_profile_get(hreq);

DPRINTF(E_DBG, L_DAAP, "Speaker check of '%s' (codecs '%s') returned %d\n", hreq->user_agent, accept_codecs, spk_profile);

nsongs = 0;
while ((ret = db_query_fetch_file(&dbmfi, &qp)) == 0)
{
Expand All @@ -1241,9 +1236,6 @@ daap_reply_songlist_generic(struct httpd_request *hreq, int playlist)
}
else if (profile != XCODE_NONE)
{
if (spk_profile != XCODE_NONE)
profile = spk_profile;

if (safe_atou32(dbmfi.song_length, &len_ms) < 0)
len_ms = 3 * 60 * 1000; // just a fallback default

Expand Down

0 comments on commit 73864e8

Please sign in to comment.