mirror of https://github.com/mpv-player/mpv
Locale fix.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8264 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
655c735107
commit
ba6ccfdcb9
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue