[MPlayer-cvslog] r33799 - trunk/libvo/vo_jpeg.c

reimar subversion at mplayerhq.hu
Sun Jul 3 01:22:50 CEST 2011


Author: reimar
Date: Sun Jul  3 01:22:49 2011
New Revision: 33799

Log:
Use "const char *" type for paths.
Fixes a clang warning due to sign mismatch when calling open().

Modified:
   trunk/libvo/vo_jpeg.c

Modified: trunk/libvo/vo_jpeg.c
==============================================================================
--- trunk/libvo/vo_jpeg.c	Sun Jul  3 01:12:45 2011	(r33798)
+++ trunk/libvo/vo_jpeg.c	Sun Jul  3 01:22:49 2011	(r33799)
@@ -105,7 +105,7 @@ static int framenum = 0;
  *                  returns, everything went well.
  */
 
-static void jpeg_mkdir(char *buf, int verbose) {
+static void jpeg_mkdir(const char *buf, int verbose) {
     struct stat stat_p;
 
 #ifndef __MINGW32__
@@ -177,7 +177,7 @@ static int config(uint32_t width, uint32
 
 /* ------------------------------------------------------------------------- */
 
-static uint32_t jpeg_write(uint8_t * name, uint8_t * buffer)
+static uint32_t jpeg_write(const char * name, uint8_t * buffer)
 {
     FILE *outfile;
     struct jpeg_compress_struct cinfo;


More information about the MPlayer-cvslog mailing list