* Cheat to make Sony Bravia AVC support work.

This commit is contained in:
Justin Maggard 2011-01-18 02:26:31 +00:00
parent f05509eaf9
commit 743a5ffdf9
3 changed files with 16 additions and 0 deletions

View File

@ -67,6 +67,7 @@ enum client_types {
EPopcornHour,
EMediaRoom,
ESonyBDP,
ESonyBravia,
EStandardDLNA150 = 100
};

View File

@ -344,6 +344,12 @@ intervening space) by either an integer or the keyword "infinite". */
h->req_client = ESonyBDP;
h->reqflags |= FLAG_DLNA;
}
/* X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA KDL-40EX503"; mv="1.7"; */
else if(strstrc(p, "BRAVIA", '\r'))
{
h->req_client = ESonyBravia;
h->reqflags |= FLAG_DLNA;
}
}
else if(strncasecmp(line, "Transfer-Encoding", 17)==0)
{

View File

@ -619,7 +619,16 @@ callback(void *args, int argc, char **argv, char **azColName)
passed_args->returned++;
if( dlna_pn )
{
if( passed_args->client == ESonyBravia )
{
/* BRAVIA KDL-##*X### series TVs do natively support AVC/AC3 in TS, but
require profile to be renamed (applies to _T and _ISO variants also) */
modifyString(dlna_pn, "AVC_TS_MP_SD_AC3", "AVC_TS_HD_50_AC3", 0);
modifyString(dlna_pn, "AVC_TS_MP_HD_AC3", "AVC_TS_HD_50_AC3", 0);
}
sprintf(dlna_buf, "DLNA.ORG_PN=%s", dlna_pn);
}
else if( passed_args->flags & FLAG_DLNA )
strcpy(dlna_buf, dlna_no_conv);
else