diff options
author | ivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-10 01:15:24 +0000 |
---|---|---|
committer | ivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-10 01:15:24 +0000 |
commit | 38321e0fe431291ce6029bde080cc63822629420 (patch) | |
tree | 5d5df5d53f73d0b8624dde362573397d58cd315a /libvo/vo_jpeg.c | |
parent | 2fd7617dc8203d011c3f4929a4d2f49e55263135 (diff) | |
download | mpv-38321e0fe431291ce6029bde080cc63822629420.tar.bz2 mpv-38321e0fe431291ce6029bde080cc63822629420.tar.xz |
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.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13301 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_jpeg.c')
-rw-r--r-- | libvo/vo_jpeg.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libvo/vo_jpeg.c b/libvo/vo_jpeg.c index 93668d8169..1ece703020 100644 --- a/libvo/vo_jpeg.c +++ b/libvo/vo_jpeg.c @@ -217,7 +217,6 @@ static uint32_t draw_frame(uint8_t *src[]) 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 @@ static uint32_t draw_frame(uint8_t *src[]) * 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. */ |