[vlc-commits] rtsp: remove tautology

Rémi Denis-Courmont git at videolan.org
Wed Apr 27 21:16:35 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 27 22:06:51 2016 +0300| [7b5e0c6090f7029bfe204e375ff6d2741fc98a6f] | committer: Rémi Denis-Courmont

rtsp: remove tautology

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

 modules/access/rtsp/access.c |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/modules/access/rtsp/access.c b/modules/access/rtsp/access.c
index dd3409e..858cdad 100644
--- a/modules/access/rtsp/access.c
+++ b/modules/access/rtsp/access.c
@@ -148,13 +148,6 @@ static int Open( vlc_object_t *p_this )
     char* psz_server = NULL;
     int i_result;
 
-    if( strncmp( p_access->psz_access, "rtsp", 4 ) &&
-        strncmp( p_access->psz_access, "pnm", 3 )  &&
-        strncmp( p_access->psz_access, "realrtsp", 8 ) )
-    {
-            return VLC_EGENERIC;
-    }
-
     /* Discard legacy username/password syntax - not supported */
     const char *psz_location = strchr( p_access->psz_location, '@' );
     if( psz_location != NULL )



More information about the vlc-commits mailing list