Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azatoth/minidlna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Maggard <jmaggard@users.sourceforce.net>2011-11-24 02:41:42 +0400
committerJustin Maggard <jmaggard@users.sourceforce.net>2011-11-24 02:41:42 +0400
commit593566e39838a1cb54c17ef7a3f2a21f8b275222 (patch)
treef65ff96232abd38b43edac654beeb6eb3bd8e84a /upnphttp.c
parente67e419bee1aa215214f5eb184d12eff231ea796 (diff)
* Fix SRT caption support with the latest Samsung Series D firmware.
Diffstat (limited to 'upnphttp.c')
-rw-r--r--upnphttp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/upnphttp.c b/upnphttp.c
index aee1333..ba7f5b5 100644
--- a/upnphttp.c
+++ b/upnphttp.c
@@ -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)