[MPlayer-cvslog] r36846 - trunk/libmpcodecs/vf_screenshot.c

reimar subversion at mplayerhq.hu
Sun Feb 16 15:01:20 CET 2014


Author: reimar
Date: Sun Feb 16 15:01:20 2014
New Revision: 36846

Log:
Remove pointless "if".

Modified:
   trunk/libmpcodecs/vf_screenshot.c

Modified: trunk/libmpcodecs/vf_screenshot.c
==============================================================================
--- trunk/libmpcodecs/vf_screenshot.c	Sun Feb 16 14:24:55 2014	(r36845)
+++ trunk/libmpcodecs/vf_screenshot.c	Sun Feb 16 15:01:20 2014	(r36846)
@@ -124,8 +124,7 @@ static void write_png(struct vf_priv_s *
 static int fexists(char *fname)
 {
     struct stat dummy;
-    if (stat(fname, &dummy) == 0) return 1;
-    else return 0;
+    return stat(fname, &dummy) == 0;
 }
 
 static void gen_fname(struct vf_priv_s* priv)


More information about the MPlayer-cvslog mailing list