[Mplayer-cvslog] CVS: main/libvo vo_jpeg.c,1.18,1.19

Ivo van Poorten CVS syncmail at mplayerhq.hu
Fri Sep 10 03:15:26 CEST 2004


CVS change done by Ivo van Poorten CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv2520/libvo

Modified Files:
	vo_jpeg.c 
Log Message:
Removed unused variable (leftover of having two instances of directory creation
code, before I moved both and created a function for that).
Made code clearer by moving ++variable out of a function call.



Index: vo_jpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_jpeg.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- vo_jpeg.c	8 Sep 2004 03:51:37 -0000	1.18
+++ vo_jpeg.c	10 Sep 2004 01:15:24 -0000	1.19
@@ -217,7 +217,6 @@
     static uint32_t framecounter = 0, subdircounter = 0;
     char buf[BUFLENGTH];
     static char subdirname[BUFLENGTH] = "";
-    struct stat stat_p;
 
     /* Start writing to new subdirectory after a certain amount of frames */
     if ( framecounter == jpeg_maxfiles ) {
@@ -228,8 +227,8 @@
      * number and create the subdirectory.
      * If jpeg_subdirs is not set, do nothing and resort to old behaviour. */
     if ( !framecounter && jpeg_subdirs ) {
-        snprintf(subdirname, BUFLENGTH, "%s%08d", jpeg_subdirs,
-                                                            ++subdircounter);
+        subdircounter++;
+        snprintf(subdirname, BUFLENGTH, "%s%08d", jpeg_subdirs, subdircounter);
         snprintf(buf, BUFLENGTH, "%s/%s", jpeg_outdir, subdirname);
         jpeg_mkdir(buf, 0); /* This function only returns if creation was
                                successful. If not, the player will exit. */




More information about the MPlayer-cvslog mailing list