[vlc-commits] stream_filter: ifo: don't overwrite url

Francois Cartegnie git at videolan.org
Tue Feb 27 14:19:38 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb 27 14:10:01 2018 +0100| [9338fff8e4f31fd9259a792b6b7ee93185f1fbe9] | committer: Francois Cartegnie

stream_filter: ifo: don't overwrite url

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

 modules/demux/playlist/ifo.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/modules/demux/playlist/ifo.c b/modules/demux/playlist/ifo.c
index d425620893..b1fa7f4151 100644
--- a/modules/demux/playlist/ifo.c
+++ b/modules/demux/playlist/ifo.c
@@ -98,13 +98,9 @@ int Import_IFO( vlc_object_t *p_this )
 
 static int ReadDVD( stream_t *p_stream, input_item_node_t *node )
 {
-    char *psz_url, *psz_dir;
+    char *psz_url;
     const char *psz_location = StreamLocation(p_stream);
 
-    psz_dir = strrchr( psz_location, '/' );
-    if( psz_dir != NULL )
-       psz_dir[1] = '\0';
-
     if( asprintf( &psz_url, "dvd://%s", psz_location ) == -1 )
         return 0;
 



More information about the vlc-commits mailing list