001-1.1.6-0011-Update-support-for-LG2012-TV.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. From 533907539357df45d1923638d11192b98f7bf280 Mon Sep 17 00:00:00 2001
  2. From: Darkvater <tamas.farago@credit-suisse.com>
  3. Date: Sun, 4 May 2014 13:51:29 +0800
  4. Subject: [PATCH] Update support for LG2012 TV
  5. LG 2012 series does not need '.' in title anymore to be able to show
  6. captions
  7. ---
  8. clients.c | 8 ++++++++
  9. clients.h | 1 +
  10. upnpsoap.c | 1 +
  11. 3 files changed, 10 insertions(+)
  12. diff --git a/clients.c b/clients.c
  13. index 39ca362..cd1d06a 100644
  14. --- a/clients.c
  15. +++ b/clients.c
  16. @@ -135,6 +135,14 @@ struct client_type_s client_types[] =
  17. EXAVClientInfo
  18. },
  19. + /* USER-AGENT: Linux/2.6.35 UPnP/1.0 DLNADOC/1.50 INTEL_NMPR/2.0 LGE_DLNA_SDK/1.6.0 */
  20. + { ELGNetCastDevice,
  21. + FLAG_DLNA | FLAG_CAPTION_RES,
  22. + "LG",
  23. + "LGE_DLNA_SDK/1.6.0",
  24. + EUserAgent
  25. + },
  26. +
  27. /* User-Agent: Linux/2.6.31-1.0 UPnP/1.0 DLNADOC/1.50 INTEL_NMPR/2.0 LGE_DLNA_SDK/1.5.0 */
  28. { ELGDevice,
  29. FLAG_DLNA | FLAG_CAPTION_RES,
  30. diff --git a/clients.h b/clients.h
  31. index 190d569..35d819a 100644
  32. --- a/clients.h
  33. +++ b/clients.h
  34. @@ -57,6 +57,7 @@ enum client_types {
  35. EDirecTV,
  36. EFreeBox,
  37. ELGDevice,
  38. + ELGNetCastDevice,
  39. ELifeTab,
  40. EMarantzDMP,
  41. EMediaRoom,
  42. diff --git a/upnpsoap.c b/upnpsoap.c
  43. index 0f19035..0c2b9af 100644
  44. --- a/upnpsoap.c
  45. +++ b/upnpsoap.c
  46. @@ -1055,6 +1055,7 @@ callback(void *args, int argc, char **argv, char **azColName)
  47. break;
  48. case ESamsungSeriesCDE:
  49. case ELGDevice:
  50. + case ELGNetCastDevice:
  51. case EAsusOPlay:
  52. default:
  53. if( passed_args->flags & FLAG_HAS_CAPTIONS )
  54. --
  55. 2.11.0