diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:26:13 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:34:35 +0300 |
commit | 0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch) | |
tree | 71cb9bd9ed121156d3382066c0722c73189afe04 /libvo/vo_pnm.c | |
parent | 6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff) | |
download | mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2 mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz |
Remove trailing whitespace from most files
Diffstat (limited to 'libvo/vo_pnm.c')
-rw-r--r-- | libvo/vo_pnm.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/libvo/vo_pnm.c b/libvo/vo_pnm.c index 487397c1a4..f8e0b2271b 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, _("Output directory already exists, but is not writable.")); exit_player_bad(_("Fatal error")); } - + if (strcmp(buf, ".") != 0) { mp_msg(MSGT_VO, MSGL_INFO, "%s: %s - %s\n", info.short_name, buf, _("Output directory already exists and is writable.")); @@ -240,7 +240,7 @@ static void pnm_mkdir(char *buf, int verbose) { buf, _("Unable to create output directory.")); exit_player_bad(_("Fatal error")); } /* end switch */ - } else if ( verbose ) { + } else if ( verbose ) { mp_msg(MSGT_VO, MSGL_INFO, "%s: %s - %s\n", info.short_name, buf, _("Output directory successfully created.")); } /* 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_bad(_("Fatal 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, "Unable to create output file."); @@ -476,7 +476,7 @@ static void pnm_write_image(mp_image_t *mpi) strerror(errno) ); exit_player_bad(_("Fatal error")); } - + pnm_write_pnm(outfile, mpi); fclose(outfile); @@ -595,4 +595,3 @@ static void flip_page (void) #undef PNM_TYPE_PGMYUV /* ------------------------------------------------------------------------- */ - |