Locale fix.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8264 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rguyom 2002-11-24 06:23:50 +00:00
parent 655c735107
commit ba6ccfdcb9
1 changed files with 10 additions and 0 deletions

View File

@ -25,6 +25,10 @@
#include "../config.h"
#include "../mp_msg.h"
#ifdef USE_SETLOCALE
#include <locale.h>
#endif
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
@ -230,6 +234,9 @@ static int open(vf_instance_t *vf, char* args){
if(args==NULL) return 0;
#ifdef USE_SETLOCALE
setlocale( LC_NUMERIC, "C" );
#endif
e=sscanf(args, "%f:%f:%d:%f:%f:%d",
&vf->priv->luma.radius,
&vf->priv->luma.strength,
@ -238,6 +245,9 @@ static int open(vf_instance_t *vf, char* args){
&vf->priv->chroma.strength,
&vf->priv->chroma.threshold
);
#ifdef USE_SETLOCALE
setlocale( LC_NUMERIC, "" );
#endif
vf->priv->luma.quality = vf->priv->chroma.quality= 3.0;