[Mplayer-cvslog] CVS: main/libmpcodecs vf_eq2.c,1.2,1.3

Bohdan 'Nexus' Horst CVS nexus at mplayerhq.hu
Sun Nov 3 18:21:15 CET 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv18093

Modified Files:
	vf_eq2.c 
Log Message:
locale fix

Index: vf_eq2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_eq2.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- vf_eq2.c	4 Oct 2002 19:58:48 -0000	1.2
+++ vf_eq2.c	3 Nov 2002 17:20:58 -0000	1.3
@@ -19,6 +19,10 @@
 #include "mp_image.h"
 #include "vf.h"
 
+#ifdef USE_SETLOCALE
+#include <locale.h>
+#endif
+
 
 typedef struct vf_priv_s {
   unsigned char *buf;
@@ -219,7 +223,13 @@
   eq2->bright = 0.0;
 
   if (args != NULL) {
+#ifdef USE_SETLOCALE
+    setlocale( LC_NUMERIC, "C" );
+#endif
     sscanf (args, "%lf:%lf:%lf", &eq2->gamma, &eq2->contrast, &eq2->bright);
+#ifdef USE_SETLOCALE
+    setlocale( LC_NUMERIC, "" );
+#endif
   }
 
   create_lut (eq2);




More information about the MPlayer-cvslog mailing list