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

ib subversion at mplayerhq.hu
Wed Dec 12 18:34:50 CET 2012


Author: ib
Date: Wed Dec 12 18:34:50 2012
New Revision: 35672

Log:
Remove pointless condition.

If there wasn't a curr item (and thus all its members have been
set NULL), PLAYLIST_ITEM_FIND won't find anything anyway.

Modified:
   trunk/gui/dialog/playlist.c

Modified: trunk/gui/dialog/playlist.c
==============================================================================
--- trunk/gui/dialog/playlist.c	Wed Dec 12 18:33:01 2012	(r35671)
+++ trunk/gui/dialog/playlist.c	Wed Dec 12 18:34:50 2012	(r35672)
@@ -223,7 +223,7 @@ static void plButtonReleased( GtkButton 
 	item = listMgr( PLAYLIST_GET,0 );
 	if ( item )
 	 {
-	  if ( guiInfo.Playing && curr.name )
+	  if ( guiInfo.Playing )
 	   {
 	    old = listMgr( PLAYLIST_ITEM_FIND,&curr );
 	    if ( old )


More information about the MPlayer-cvslog mailing list