Commit 5db979bb authored by Rob Jonson's avatar Rob Jonson Committed by Rémi Denis-Courmont

instead of sending the uri as name to input_item_NewExt, send NULL and the...

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: default avatarRémi Denis-Courmont <remi@remlab.net>
parent aad27e08
...@@ -521,15 +521,7 @@ int vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L, ...@@ -521,15 +521,7 @@ int vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L,
{ {
if( !lua_isnil( L, -1 ) ) if( !lua_isnil( L, -1 ) )
msg_Warn( p_this, "Playlist item name should be a string." ); msg_Warn( p_this, "Playlist item name should be a string." );
psz_name = NULL;
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;
} }
/* Read duration */ /* Read duration */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment