[MPlayer-cvslog] r37693 - trunk/libmpdemux/mf.c

reimar subversion at mplayerhq.hu
Fri Feb 12 21:20:11 CET 2016


Author: reimar
Date: Fri Feb 12 21:20:10 2016
New Revision: 37693

Log:
mf.c: check for stat() failure.

Modified:
   trunk/libmpdemux/mf.c

Modified: trunk/libmpdemux/mf.c
==============================================================================
--- trunk/libmpdemux/mf.c	Fri Feb 12 21:15:49 2016	(r37692)
+++ trunk/libmpdemux/mf.c	Fri Feb 12 21:20:10 2016	(r37693)
@@ -129,7 +129,7 @@ mf_t* open_mf(char * filename){
 
    for( i=0;i < gg.gl_pathc;i++ )
     {
-     stat( gg.gl_pathv[i],&fs );
+     if (stat( gg.gl_pathv[i],&fs ) == -1) continue;
      if( S_ISDIR( fs.st_mode ) ) continue;
      mf->names[i]=strdup( gg.gl_pathv[i] );
 //     mp_msg( MSGT_STREAM,MSGL_DBG2,"[mf] added file %d.: %s\n",i,mf->names[i] );


More information about the MPlayer-cvslog mailing list