mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
locale fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8088 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
867f528196
commit
bdc4ec9153
@ -19,6 +19,10 @@
|
|||||||
#include "mp_image.h"
|
#include "mp_image.h"
|
||||||
#include "vf.h"
|
#include "vf.h"
|
||||||
|
|
||||||
|
#ifdef USE_SETLOCALE
|
||||||
|
#include <locale.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
typedef struct vf_priv_s {
|
typedef struct vf_priv_s {
|
||||||
unsigned char *buf;
|
unsigned char *buf;
|
||||||
@ -219,7 +223,13 @@ int open (vf_instance_t *vf, char *args)
|
|||||||
eq2->bright = 0.0;
|
eq2->bright = 0.0;
|
||||||
|
|
||||||
if (args != NULL) {
|
if (args != NULL) {
|
||||||
|
#ifdef USE_SETLOCALE
|
||||||
|
setlocale( LC_NUMERIC, "C" );
|
||||||
|
#endif
|
||||||
sscanf (args, "%lf:%lf:%lf", &eq2->gamma, &eq2->contrast, &eq2->bright);
|
sscanf (args, "%lf:%lf:%lf", &eq2->gamma, &eq2->contrast, &eq2->bright);
|
||||||
|
#ifdef USE_SETLOCALE
|
||||||
|
setlocale( LC_NUMERIC, "" );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
create_lut (eq2);
|
create_lut (eq2);
|
||||||
|
Loading…
Reference in New Issue
Block a user