[MPlayer-cvslog] r35926 - trunk/gui/dialog/fileselect.c

ib subversion at mplayerhq.hu
Thu Feb 28 12:18:21 CET 2013


Author: ib
Date: Thu Feb 28 12:18:20 2013
New Revision: 35926

Log:
Fix bug with deleted file appearing in the path list.

Since r35493 a file just played, stopped and deleted while the GUI is in
idle mode appeared in the file selector path list upon the next evLoad.

Modified:
   trunk/gui/dialog/fileselect.c

Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c	Thu Feb 28 01:40:48 2013	(r35925)
+++ trunk/gui/dialog/fileselect.c	Thu Feb 28 12:18:20 2013	(r35926)
@@ -331,7 +331,7 @@ void ShowFileSelect( int type,int modal 
    do
     {
      char * c = strrchr( dir,'/' );
-     if ( ( stat( dir,&f ) != 0 ) || S_ISDIR( f.st_mode ) ) break;
+     if ( ( stat( dir,&f ) == 0 ) && S_ISDIR( f.st_mode ) ) break;
      if ( c ) *c=0;
     } while ( strrchr( dir,'/' ) );
 


More information about the MPlayer-cvslog mailing list