upnpsoap: Fix external subtitles on Samsung Series J.
Add FLAG_CAPTION_RES to the modern Samsung profile. Older Samsung devices used a custom method for describing subtitles, but apparently Series J no longer supports it. The good thing is, they now support the more standard method (and probably have been for a while, since it works on my old Series D BDP). So let's just expose both methods to the client, since everything should be able to handle it. Fixes: SF bug #113 (Subtitles support for new 2015 Samsung J series TV)
This commit is contained in:
parent
1c5e9ae61c
commit
4ec6cd0053
@ -65,9 +65,10 @@ struct client_type_s client_types[] =
|
|||||||
|
|
||||||
/* User-Agent: DLNADOC/1.50 SEC_HHP_[TV]UE40D7000/1.0 */
|
/* User-Agent: DLNADOC/1.50 SEC_HHP_[TV]UE40D7000/1.0 */
|
||||||
/* User-Agent: DLNADOC/1.50 SEC_HHP_ Family TV/1.0 */
|
/* User-Agent: DLNADOC/1.50 SEC_HHP_ Family TV/1.0 */
|
||||||
|
/* USER-AGENT: DLNADOC/1.50 SEC_HHP_[TV] UE65JU7000/1.0 UPnP/1.0 */
|
||||||
{ ESamsungSeriesCDE,
|
{ ESamsungSeriesCDE,
|
||||||
FLAG_SAMSUNG | FLAG_DLNA | FLAG_NO_RESIZE | FLAG_SAMSUNG_DCM10,
|
FLAG_SAMSUNG | FLAG_DLNA | FLAG_NO_RESIZE | FLAG_SAMSUNG_DCM10 | FLAG_CAPTION_RES,
|
||||||
"Samsung Series [CDEF]",
|
"Samsung Series [CDEFJ]",
|
||||||
"SEC_HHP_",
|
"SEC_HHP_",
|
||||||
EUserAgent
|
EUserAgent
|
||||||
},
|
},
|
||||||
|
@ -1064,7 +1064,7 @@ callback(void *args, int argc, char **argv, char **azColName)
|
|||||||
"http://%s:%d/Captions/%s.srt"
|
"http://%s:%d/Captions/%s.srt"
|
||||||
"</res>",
|
"</res>",
|
||||||
lan_addr[passed_args->iface].str, runtime_vars.port, detailID);
|
lan_addr[passed_args->iface].str, runtime_vars.port, detailID);
|
||||||
else if( passed_args->filter & FILTER_SEC_CAPTION_INFO_EX )
|
if( passed_args->filter & FILTER_SEC_CAPTION_INFO_EX )
|
||||||
ret = strcatf(str, "<sec:CaptionInfoEx sec:type=\"srt\">"
|
ret = strcatf(str, "<sec:CaptionInfoEx sec:type=\"srt\">"
|
||||||
"http://%s:%d/Captions/%s.srt"
|
"http://%s:%d/Captions/%s.srt"
|
||||||
"</sec:CaptionInfoEx>",
|
"</sec:CaptionInfoEx>",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user