From bdc4ec9153b5034e78992bdda78265a7bf0fd7ec Mon Sep 17 00:00:00 2001 From: nexus Date: Sun, 3 Nov 2002 17:20:58 +0000 Subject: locale fix git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8088 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_eq2.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libmpcodecs') diff --git a/libmpcodecs/vf_eq2.c b/libmpcodecs/vf_eq2.c index 4cd4ed75c9..8f35f1ea45 100644 --- a/libmpcodecs/vf_eq2.c +++ b/libmpcodecs/vf_eq2.c @@ -19,6 +19,10 @@ #include "mp_image.h" #include "vf.h" +#ifdef USE_SETLOCALE +#include +#endif + typedef struct vf_priv_s { unsigned char *buf; @@ -219,7 +223,13 @@ int open (vf_instance_t *vf, char *args) 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); -- cgit v1.2.3