* Fix SRT caption support with the latest Samsung Series D firmware.

This commit is contained in:
Justin Maggard
2011-11-23 22:41:42 +00:00
parent 84d4a0f3f1
commit 345ecb9d22
2 changed files with 21 additions and 6 deletions

View File

@@ -286,6 +286,7 @@ intervening space) by either an integer or the keyword "infinite". */
}
else if(strncasecmp(line, "User-Agent", 10)==0)
{
char *s;
/* Skip client detection if we already detected it. */
if( h->req_client )
goto next_header;
@@ -304,13 +305,13 @@ intervening space) by either an integer or the keyword "infinite". */
h->reqflags |= FLAG_DLNA;
h->reqflags |= FLAG_MIME_AVI_DIVX;
}
else if(strstrc(p, "SEC_HHP_", '\r'))
else if((s=strstrc(p, "SEC_HHP_", '\r')))
{
h->req_client = ESamsungSeriesC;
h->reqflags |= FLAG_SAMSUNG;
h->reqflags |= FLAG_DLNA;
h->reqflags |= FLAG_NO_RESIZE;
if(strstrc(p, "SEC_HHP_TV", '\r'))
if(strstrc(s+8, "TV", '\r'))
h->reqflags |= FLAG_SAMSUNG_TV;
}
else if(strncmp(p, "SamsungWiselinkPro", 18)==0)