[vlc-commits] instead of sending the uri as name to input_item_NewExt, send NULL and the core will deal with it (fix #5378)

Rob Jonson git at videolan.org
Mon Sep 26 16:58:34 CEST 2011


vlc | branch: master | Rob Jonson <rob at hobbyistsoftware.com> | Sun Sep 25 22:54:49 2011 +0100| [5db979bb40c2baced8b79f7b77b9e16f2560bae7] | committer: Rémi Denis-Courmont

instead of sending the uri as name to input_item_NewExt, send NULL and the core will deal with it (fix #5378)

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/lua/vlc.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/modules/lua/vlc.c b/modules/lua/vlc.c
index fd8a511..ea3f84b 100644
--- a/modules/lua/vlc.c
+++ b/modules/lua/vlc.c
@@ -521,15 +521,7 @@ int vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L,
                     {
                         if( !lua_isnil( L, -1 ) )
                             msg_Warn( p_this, "Playlist item name should be a string." );
-
-                        psz_u8path = make_path( psz_path );
-                        if ( psz_u8path )
-                        {
-                            psz_name = strrchr( psz_u8path, '/' );
-                            if ( psz_name != NULL )
-                                psz_name++;
-                        }
-                        if ( !psz_name ) psz_name = psz_path;
+                        psz_name = NULL;
                     }
 
                     /* Read duration */



More information about the vlc-commits mailing list