001-1.1.6-0012-clients-Add-AllShare-and-Windows-detection.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. From 02b6085380e3dfb422037c8b08a492e48789dd59 Mon Sep 17 00:00:00 2001
  2. From: Justin Maggard <jmaggard@netgear.com>
  3. Date: Thu, 21 Apr 2016 14:31:53 -0700
  4. Subject: [PATCH] clients: Add AllShare and Windows detection
  5. Reporting Samsung features to Windows and AllShare somehow makes them
  6. ignore us, so detect these client types specifically and don't expose
  7. Samsung capabilities to them.
  8. ---
  9. clients.c | 17 +++++++++++++++++
  10. 1 file changed, 17 insertions(+)
  11. diff --git a/clients.c b/clients.c
  12. index cd1d06a..5b9ba5d 100644
  13. --- a/clients.c
  14. +++ b/clients.c
  15. @@ -53,6 +53,16 @@ struct client_type_s client_types[] =
  16. EXAVClientInfo
  17. },
  18. + /* User-Agent: DLNADOC/1.50 SEC_HHP_[PC]LPC001/1.0 MS-DeviceCaps/1024 */
  19. + /* This is AllShare running on a PC. We don't want to respond with Samsung
  20. + * capabilities, or Windows (and AllShare) might get grumpy. */
  21. + { 0,
  22. + FLAG_DLNA,
  23. + "AllShare",
  24. + "SEC_HHP_[PC]",
  25. + EUserAgent
  26. + },
  27. +
  28. /* Samsung Series [CDE] BDPs and TVs must be separated, or some of our
  29. * advertised extra features trigger a folder browsing bug on BDPs. */
  30. /* User-Agent: DLNADOC/1.50 SEC_HHP_BD-D5100/1.0 */
  31. @@ -230,6 +240,13 @@ struct client_type_s client_types[] =
  32. EUserAgent
  33. },
  34. + { 0,
  35. + FLAG_DLNA | FLAG_MIME_AVI_AVI,
  36. + "Windows",
  37. + "FDSSDP",
  38. + EUserAgent
  39. + },
  40. +
  41. { EStandardDLNA150,
  42. FLAG_DLNA | FLAG_MIME_AVI_AVI,
  43. "Generic DLNA 1.5",
  44. --
  45. 2.11.0