2
1

0010-modules-access-live555.cpp-fix-build-with-live555-20.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From eba390d13ec4089cd6b9d8687ab3f8905b9d3ac8 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Sat, 22 May 2021 22:56:04 +0200
  4. Subject: [PATCH] modules/access/live555.cpp: fix build with live555 >=
  5. 2020.12.11
  6. Since live555-2020.12.11, connectionEndpointAddress() member function
  7. use a "struct sockaddr_storage" in preparation for eventual support of
  8. IPv6: http://www.live555.com/liveMedia/public/changelog.txt
  9. Fixes:
  10. - http://autobuild.buildroot.org/results/83170984f96238756c45bf1f4e542363afafd45f
  11. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  12. ---
  13. modules/access/live555.cpp | 4 +++-
  14. 1 file changed, 3 insertions(+), 1 deletion(-)
  15. diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp
  16. index 9d6e01ae32..32a6c294eb 100644
  17. --- a/modules/access/live555.cpp
  18. +++ b/modules/access/live555.cpp
  19. @@ -850,7 +850,9 @@ static int SessionsSetup( demux_t *p_demux )
  20. if( !p_sys->b_multicast )
  21. {
  22. /* We need different rollover behaviour for multicast */
  23. - p_sys->b_multicast = IsMulticastAddress( sub->connectionEndpointAddress() );
  24. + struct sockaddr_storage tempAddr;
  25. + sub->getConnectionEndpointAddress( tempAddr );
  26. + p_sys->b_multicast = IsMulticastAddress( tempAddr );
  27. }
  28. tk = (live_track_t*)malloc( sizeof( live_track_t ) );
  29. --
  30. 2.30.2