[vlc-commits] stream: use vlc_access_NewMRL()

Rémi Denis-Courmont git at videolan.org
Wed Jul 22 22:49:33 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul 22 23:16:32 2015 +0300| [5b2e775b3ac01d9a6ecbb004274b54cdedd977d1] | committer: Rémi Denis-Courmont

stream: use vlc_access_NewMRL()

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

 src/input/stream.c |   10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/src/input/stream.c b/src/input/stream.c
index 7a6e329..a9ea2df 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -258,18 +258,10 @@ void stream_CommonDelete( stream_t *s )
  ****************************************************************************/
 stream_t *stream_UrlNew( vlc_object_t *p_parent, const char *psz_url )
 {
-    const char *psz_access, *psz_demux, *psz_path, *psz_anchor;
-    access_t *p_access;
-
     if( !psz_url )
         return NULL;
 
-    char psz_dup[strlen( psz_url ) + 1];
-    strcpy( psz_dup, psz_url );
-    input_SplitMRL( &psz_access, &psz_demux, &psz_path, &psz_anchor, psz_dup );
-
-    /* Now try a real access */
-    p_access = access_New( p_parent, NULL, psz_access, psz_demux, psz_path );
+    access_t *p_access = vlc_access_NewMRL( p_parent, psz_url );
     if( p_access == NULL )
     {
         msg_Err( p_parent, "no suitable access module for `%s'", psz_url );



More information about the vlc-commits mailing list