[MPlayer-cvslog] r35580 - trunk/gui/ui/gtk/playlist.c
ib
subversion at mplayerhq.hu
Mon Dec 3 15:40:20 CET 2012
Author: ib
Date: Mon Dec 3 15:40:20 2012
New Revision: 35580
Log:
Only ask for playlist position if there is an item.
Modified:
trunk/gui/ui/gtk/playlist.c
Modified: trunk/gui/ui/gtk/playlist.c
==============================================================================
--- trunk/gui/ui/gtk/playlist.c Mon Dec 3 15:12:13 2012 (r35579)
+++ trunk/gui/ui/gtk/playlist.c Mon Dec 3 15:40:20 2012 (r35580)
@@ -194,16 +194,16 @@ static void plButtonReleased( GtkButton
{
case 1: // ok
{
- int pos, i;
+ int pos = 0, i;
plItem curr, * item, * old;
item = listMgr( PLAYLIST_ITEM_GET_CURR,0 );
if (item)
{
curr.path = gstrdup(item->path);
curr.name = gstrdup(item->name);
+ pos = (int) listMgr( PLAYLIST_ITEM_GET_POS,item );
}
else curr.path = curr.name = NULL;
- pos = (int) listMgr( PLAYLIST_ITEM_GET_POS,item );
listMgr( PLAYLIST_DELETE,0 );
for ( i=0;i<NrOfSelected;i++ )
{
More information about the MPlayer-cvslog
mailing list