]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/commands/cmd_add_item.cpp
src/input/item.c: if we don't have an item name and item is a file, then only use...
[vlc] / modules / gui / skins2 / commands / cmd_add_item.cpp
index 771ec13c913dea5f16c145468f851b2e2e83b1be..dbfdea032a835d9d045361e4475c865cb5147c98 100644 (file)
@@ -37,13 +37,13 @@ void CmdAddItem::execute()
     if( m_playNow )
     {
         // Enqueue and play the item
-        playlist_PlaylistAdd( pPlaylist, m_name.c_str(),m_name.c_str(),
+        playlist_PlaylistAdd( pPlaylist, m_name.c_str(), NULL,
                               PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END );
     }
     else
     {
         // Enqueue the item only
-        playlist_PlaylistAdd( pPlaylist, m_name.c_str(), m_name.c_str(),
+        playlist_PlaylistAdd( pPlaylist, m_name.c_str(), NULL,
                               PLAYLIST_APPEND, PLAYLIST_END );
     }
 }