clients: Add AllShare and Windows detection
Reporting Samsung features to Windows and AllShare somehow makes them ignore us, so detect these client types specifically and don't expose Samsung capabilities to them.
This commit is contained in:
parent
5339075393
commit
02b6085380
17
clients.c
17
clients.c
@ -53,6 +53,16 @@ struct client_type_s client_types[] =
|
|||||||
EXAVClientInfo
|
EXAVClientInfo
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/* User-Agent: DLNADOC/1.50 SEC_HHP_[PC]LPC001/1.0 MS-DeviceCaps/1024 */
|
||||||
|
/* This is AllShare running on a PC. We don't want to respond with Samsung
|
||||||
|
* capabilities, or Windows (and AllShare) might get grumpy. */
|
||||||
|
{ 0,
|
||||||
|
FLAG_DLNA,
|
||||||
|
"AllShare",
|
||||||
|
"SEC_HHP_[PC]",
|
||||||
|
EUserAgent
|
||||||
|
},
|
||||||
|
|
||||||
/* Samsung Series [CDE] BDPs and TVs must be separated, or some of our
|
/* Samsung Series [CDE] BDPs and TVs must be separated, or some of our
|
||||||
* advertised extra features trigger a folder browsing bug on BDPs. */
|
* advertised extra features trigger a folder browsing bug on BDPs. */
|
||||||
/* User-Agent: DLNADOC/1.50 SEC_HHP_BD-D5100/1.0 */
|
/* User-Agent: DLNADOC/1.50 SEC_HHP_BD-D5100/1.0 */
|
||||||
@ -230,6 +240,13 @@ struct client_type_s client_types[] =
|
|||||||
EUserAgent
|
EUserAgent
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{ 0,
|
||||||
|
FLAG_DLNA | FLAG_MIME_AVI_AVI,
|
||||||
|
"Windows",
|
||||||
|
"FDSSDP",
|
||||||
|
EUserAgent
|
||||||
|
},
|
||||||
|
|
||||||
{ EStandardDLNA150,
|
{ EStandardDLNA150,
|
||||||
FLAG_DLNA | FLAG_MIME_AVI_AVI,
|
FLAG_DLNA | FLAG_MIME_AVI_AVI,
|
||||||
"Generic DLNA 1.5",
|
"Generic DLNA 1.5",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user