[MPlayer-cvslog] r35648 - trunk/gui/dialog/playlist.c

ib subversion at mplayerhq.hu
Mon Dec 10 03:25:03 CET 2012


Author: ib
Date: Mon Dec 10 03:25:03 2012
New Revision: 35648

Log:
Calculate number of playlist tracks in any case.

We won't reset to zero for an empty list else.

Modified:
   trunk/gui/dialog/playlist.c

Modified: trunk/gui/dialog/playlist.c
==============================================================================
--- trunk/gui/dialog/playlist.c	Mon Dec 10 03:08:43 2012	(r35647)
+++ trunk/gui/dialog/playlist.c	Mon Dec 10 03:25:03 2012	(r35648)
@@ -236,9 +236,9 @@ static void plButtonReleased( GtkButton 
 	    guiInfo.PlaylistNext = (curr.name ? False : True);
 	    guiInfo.Track = 1;
 	   }
-	  guiInfo.Tracks = (int) listMgr( PLAYLIST_ITEM_GET_POS,0 );
 	 }
 	else if (isPlaylistStreamtype && !guiInfo.Playing) uiUnsetFile();
+	guiInfo.Tracks = (int) listMgr( PLAYLIST_ITEM_GET_POS,0 );
 	free(curr.path);
 	free(curr.name);
        }


More information about the MPlayer-cvslog mailing list