diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-05-13 02:58:57 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-05-13 02:58:57 +0000 |
commit | 6e9cbdc10448203e7c8b2de41447442fcc9f7bae (patch) | |
tree | 0ed465592509105fdbeab27fc12ddbb2e3590aa5 /libvo/vo_pnm.c | |
parent | eafe5b7517bbf408ae1ffc936a3abe2313c3b334 (diff) | |
download | mpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.bz2 mpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.xz |
whitespace cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_pnm.c')
-rw-r--r-- | libvo/vo_pnm.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libvo/vo_pnm.c b/libvo/vo_pnm.c index 9fab71fc7b..90caf55e24 100644 --- a/libvo/vo_pnm.c +++ b/libvo/vo_pnm.c @@ -197,7 +197,7 @@ static int preinit(const char *arg) * returns, everything went well. */ -static void pnm_mkdir(char *buf, int verbose) { +static void pnm_mkdir(char *buf, int verbose) { struct stat stat_p; /* Silly MING32 bug workaround */ @@ -226,7 +226,7 @@ static void pnm_mkdir(char *buf, int verbose) { buf, MSGTR_VO_DirExistsButNotWritable); exit_player(MSGTR_Exit_error); } - + if (strcmp(buf, ".") != 0) { mp_msg(MSGT_VO, MSGL_INFO, "%s: %s - %s\n", info.short_name, buf, MSGTR_VO_DirExistsAndIsWritable); @@ -240,7 +240,7 @@ static void pnm_mkdir(char *buf, int verbose) { buf, MSGTR_VO_CantCreateDirectory); exit_player(MSGTR_Exit_error); } /* end switch */ - } else if ( verbose ) { + } else if ( verbose ) { mp_msg(MSGT_VO, MSGL_INFO, "%s: %s - %s\n", info.short_name, buf, MSGTR_VO_DirectoryCreateSuccess); } /* end if */ @@ -267,7 +267,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, } /* Create outdir. */ - + snprintf(buf, BUFLENGTH, "%s", pnm_outdir); pnm_mkdir(buf, 1); /* This function only returns if creation was successful. If not, the player will exit. */ @@ -444,7 +444,7 @@ static void pnm_write_image(mp_image_t *mpi) mp_msg(MSGT_VO, MSGL_ERR, "%s: No image data suplied to video output driver\n", info.short_name ); exit_player(MSGTR_Exit_error); } - + /* Start writing to new subdirectory after a certain amount of frames */ if ( framecounter == pnm_maxfiles ) { framecounter = 0; @@ -460,14 +460,14 @@ static void pnm_write_image(mp_image_t *mpi) pnm_mkdir(buf, 0); /* This function only returns if creation was successful. If not, the player will exit. */ } - + framenum++; framecounter++; /* snprintf the full pathname of the outputfile */ snprintf(buf, BUFLENGTH, "%s/%s/%08d.%s", pnm_outdir, subdirname, framenum, pnm_file_extension); - + if ( (outfile = fopen(buf, "wb") ) == NULL ) { mp_msg(MSGT_VO, MSGL_ERR, "\n%s: %s\n", info.short_name, MSGTR_VO_CantCreateFile); @@ -476,7 +476,7 @@ static void pnm_write_image(mp_image_t *mpi) strerror(errno) ); exit_player(MSGTR_Exit_error); } - + pnm_write_pnm(outfile, mpi); fclose(outfile); |