From 5db979bb40c2baced8b79f7b77b9e16f2560bae7 Mon Sep 17 00:00:00 2001 From: Rob Jonson Date: Sun, 25 Sep 2011 22:54:49 +0100 Subject: [PATCH] instead of sending the uri as name to input_item_NewExt, send NULL and the core will deal with it (fix #5378) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ©mi Denis-Courmont --- modules/lua/vlc.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/modules/lua/vlc.c b/modules/lua/vlc.c index fd8a511cf3..ea3f84b015 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 */ -- 2.11.4.GIT