Add supported codec list for Front Row and QuickTime

Patch from Ace Jones <ace.jones1@yahoo.com>.
This commit is contained in:
Julien BLACHE 2009-12-08 20:45:57 +01:00
parent 38c502cb7e
commit df2cbea9b2
1 changed files with 12 additions and 0 deletions

View File

@ -540,6 +540,18 @@ transcode_needed(struct evkeyvalq *headers, char *file_codectype)
{
DPRINTF(E_DBG, L_XCODE, "Client is iTunes\n");
client_codecs = itunes_codecs;
}
else if (strncmp(user_agent, "QuickTime", strlen("QuickTime")) == 0)
{
DPRINTF(E_DBG, L_XCODE, "Client is QuickTime, using iTunes codecs\n");
client_codecs = itunes_codecs;
}
else if (strncmp(user_agent, "Front%20Row", strlen("Front%20Row")) == 0)
{
DPRINTF(E_DBG, L_XCODE, "Client is Front Row, using iTunes codecs\n");
client_codecs = itunes_codecs;
}
else if (strncmp(user_agent, "Roku", strlen("Roku")) == 0)