]> git.sesse.net Git - vlc/commitdiff
macosx: Don't send PLAYLIST_SKIP. Fix adding item when an other is playing.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 6 Jul 2008 21:25:36 +0000 (23:25 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 6 Jul 2008 21:25:36 +0000 (23:25 +0200)
modules/gui/macosx/playlist.m

index 90d75e1220fce50f191d2c0849f3c99869c516bf..6fe2531aedb507dd75d45d177409ee89e2a3c175 100644 (file)
             p_item = playlist_ItemGetByInput( p_playlist, p_input, true );
             playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, true, NULL, p_item );
         }
-        else
-        {
-            playlist_item_t *p_item;
-            p_item = playlist_ItemGetByInput( p_playlist, p_input, true );
-            playlist_Control( p_playlist, PLAYLIST_SKIP, true, p_item );
-        }
         vlc_gc_decref( p_input );
     }
     [self playlistUpdated];
             p_item = playlist_ItemGetByInput( p_playlist, p_input, true );
             playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, true, NULL, p_item );
         }
-        else
-        {
-            playlist_item_t *p_item;
-            p_item = playlist_ItemGetByInput( p_playlist, p_input, true );
-            playlist_Control( p_playlist, PLAYLIST_SKIP, true, p_item );
-        }
         vlc_gc_decref( p_input );
     }
     [self playlistUpdated];