[MPlayer-cvslog] CVS: main/libmpcodecs vf_screenshot.c,1.9,1.10

Dominik Mierzejewski CVS syncmail at mplayerhq.hu
Sat May 13 20:20:44 CEST 2006


CVS change done by Dominik Mierzejewski CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv4424/libmpcodecs

Modified Files:
	vf_screenshot.c 
Log Message:
Make return type consistent with usage. Patch by Pierre Lombard.


Index: vf_screenshot.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_screenshot.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- vf_screenshot.c	21 Mar 2006 21:26:42 -0000	1.9
+++ vf_screenshot.c	13 May 2006 18:20:41 -0000	1.10
@@ -54,7 +54,7 @@
     return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt);
 }
 
-static int write_png(char *fname, unsigned char *buffer, int width, int height, int stride)
+static void write_png(char *fname, unsigned char *buffer, int width, int height, int stride)
 {
     FILE * fp;
     png_structp png_ptr;
@@ -69,13 +69,13 @@
     if (setjmp(png_ptr->jmpbuf)) {
 	png_destroy_write_struct(&png_ptr, &info_ptr);
 	fclose(fp);
-	return 0;
+	return;
     }
 
     fp = fopen (fname, "wb");
     if (fp == NULL) {
 	mp_msg(MSGT_VFILTER,MSGL_ERR,"\nPNG Error opening %s for writing!\n", fname);
-	return 0;
+	return;
     }
         
     png_init_io(png_ptr, fp);




More information about the MPlayer-cvslog mailing list