[vlc-commits] access/satip: remove write only variable

Filip Roséen git at videolan.org
Wed Mar 15 19:19:21 CET 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Wed Mar 15 10:06:21 2017 +0100| [3ab2501a3664aeaf43af2cb39c76d5f4f499bc0a] | committer: Hugo Beauzée-Luyssen

access/satip: remove write only variable

The now removed lines of code are part of the legacy implementation
(before vlc_UrlParse was used), and are no longer required.

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3ab2501a3664aeaf43af2cb39c76d5f4f499bc0a
---

 modules/access/satip.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/modules/access/satip.c b/modules/access/satip.c
index d264bd8..4abc487 100644
--- a/modules/access/satip.c
+++ b/modules/access/satip.c
@@ -645,11 +645,6 @@ static int satip_open(vlc_object_t *obj)
     for (unsigned i = 0; i < strlen(psz_lower_url); i++)
         psz_lower_url[i] = tolower(psz_lower_url[i]);
 
-    const char* psz_lower_location = strstr( psz_lower_url, "://" );
-    if ( psz_lower_location == NULL )
-        goto error;
-    psz_lower_location += 3;
-
     vlc_UrlParse(&url, psz_lower_url);
     if (url.i_port <= 0)
         url.i_port = RTSP_DEFAULT_PORT;



More information about the vlc-commits mailing list