git: 457cf7810cec - main - multimedia/vlc: update to 3.0.17.4

From: Tobias C. Berner <tcberner_at_FreeBSD.org>
Date: Thu, 28 Apr 2022 18:21:37 UTC
The branch main has been updated by tcberner:

URL: https://cgit.FreeBSD.org/ports/commit/?id=457cf7810cec4a2fb9a89d86663986104917e09f

commit 457cf7810cec4a2fb9a89d86663986104917e09f
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2022-04-28 17:54:55 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-04-28 18:21:26 +0000

    multimedia/vlc: update to 3.0.17.4
    
    - add patch obtained from arch linux to build against liveMedia >=
      2021.x
---
 multimedia/vlc/Makefile                             |  3 +--
 multimedia/vlc/distinfo                             |  6 +++---
 multimedia/vlc/files/patch-arch-vlc-live-media-2021 | 17 +++++++++++++++++
 3 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/multimedia/vlc/Makefile b/multimedia/vlc/Makefile
index 261813bbe9cc..d92a29e341ba 100644
--- a/multimedia/vlc/Makefile
+++ b/multimedia/vlc/Makefile
@@ -1,8 +1,7 @@
 # Created by: Brian Somers <brian@FreeBSD.org>
 
 PORTNAME=	vlc
-DISTVERSION=	3.0.17.3
-PORTREVISION=	3
+DISTVERSION=	3.0.17.4
 PORTEPOCH=	4
 CATEGORIES=	multimedia audio net www
 MASTER_SITES=	http://download.videolan.org/pub/videolan/${PORTNAME}/${DISTVERSION:S/a$//}/ \
diff --git a/multimedia/vlc/distinfo b/multimedia/vlc/distinfo
index a23fc6a3f054..a7a1f58bf737 100644
--- a/multimedia/vlc/distinfo
+++ b/multimedia/vlc/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1647624026
-SHA256 (vlc-3.0.17.3.tar.xz) = 6f7e90ef8973d31d96de64db817173e345150829717a94084b1bb8321cde2014
-SIZE (vlc-3.0.17.3.tar.xz) = 26393440
+TIMESTAMP = 1651168440
+SHA256 (vlc-3.0.17.4.tar.xz) = 8c5a62d88a4fb45c1b095cf10befef217dfa87aedcec5184b9e7d590b6dd4133
+SIZE (vlc-3.0.17.4.tar.xz) = 26567148
diff --git a/multimedia/vlc/files/patch-arch-vlc-live-media-2021 b/multimedia/vlc/files/patch-arch-vlc-live-media-2021
new file mode 100644
index 000000000000..700c3f9b4953
--- /dev/null
+++ b/multimedia/vlc/files/patch-arch-vlc-live-media-2021
@@ -0,0 +1,17 @@
+Obtained from
+     https://github.com/archlinux/svntogit-packages/blob/packages/vlc/trunk/vlc-live-media-2021.patch
+
+diff -ru vlc-3.0.13.orig/modules/access/live555.cpp vlc-3.0.13/modules/access/live555.cpp
+--- modules/access/live555.cpp.orig	2019-03-29 20:01:15.000000000 +0100
++++ modules/access/live555.cpp	2021-05-03 16:04:38.030121796 +0200
+@@ -852,7 +852,9 @@
+             if( !p_sys->b_multicast )
+             {
+                 /* We need different rollover behaviour for multicast */
+-                p_sys->b_multicast = IsMulticastAddress( sub->connectionEndpointAddress() );
++                struct sockaddr_storage tempAddr;
++                sub->getConnectionEndpointAddress(tempAddr);
++                p_sys->b_multicast = IsMulticastAddress( tempAddr );
+             }
+
+             tk = (live_track_t*)malloc( sizeof( live_track_t ) );