diff options
author | Justin Maggard <jmaggard@users.sourceforce.net> | 2011-11-24 02:41:42 +0400 |
---|---|---|
committer | Justin Maggard <jmaggard@users.sourceforce.net> | 2011-11-24 02:41:42 +0400 |
commit | 593566e39838a1cb54c17ef7a3f2a21f8b275222 (patch) | |
tree | f65ff96232abd38b43edac654beeb6eb3bd8e84a /upnphttp.c | |
parent | e67e419bee1aa215214f5eb184d12eff231ea796 (diff) |
* Fix SRT caption support with the latest Samsung Series D firmware.
Diffstat (limited to 'upnphttp.c')
-rw-r--r-- | upnphttp.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |