Mercurial > mplayer.hg
diff libvo/vo_pnm.c @ 29263:0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
author | diego |
---|---|
date | Wed, 13 May 2009 02:58:57 +0000 |
parents | 9dd905e52639 |
children | 1772a5171ac7 |
line wrap: on
line diff
--- a/libvo/vo_pnm.c Tue May 12 19:25:35 2009 +0000 +++ b/libvo/vo_pnm.c Wed May 13 02:58:57 2009 +0000 @@ -197,7 +197,7 @@ * 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 @@ 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 @@ 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 @@ } /* 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 @@ 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 @@ 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 @@ strerror(errno) ); exit_player(MSGTR_Exit_error); } - + pnm_write_pnm(outfile, mpi); fclose(outfile);