diff options
author | nezumisama | 2015-09-06 15:00:28 +0200 |
---|---|---|
committer | nezumisama | 2015-09-06 15:12:18 +0200 |
commit | 8050aab8babba3db8914e90ccc2d9684b708ab6b (patch) | |
tree | a777d6f83abc186e9a1143292ab6596af0140fcd /vo_gl_locale_fix.patch | |
parent | 34e6d3e8af4ca718c02396176f184599eb8e1da5 (diff) | |
download | aur-8050aab8babba3db8914e90ccc2d9684b708ab6b.tar.gz |
Switched to a forked repo on my account. Patches are integrated there.
Diffstat (limited to 'vo_gl_locale_fix.patch')
-rw-r--r-- | vo_gl_locale_fix.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/vo_gl_locale_fix.patch b/vo_gl_locale_fix.patch deleted file mode 100644 index 9489b4ea7633..000000000000 --- a/vo_gl_locale_fix.patch +++ /dev/null @@ -1,26 +0,0 @@ -The generated output may use something other than "." for decimal -point, which GLSL requires. This is caused by locale. C uses ".", -so locale is temporaily set to "C" when sprinting floats. -diff -Naur mplayer2.old/libvo/gl_common.c mplayer2/libvo/gl_common.c ---- mplayer2.old/libvo/gl_common.c 2014-02-24 21:57:13.493418840 +0100 -+++ mplayer2/libvo/gl_common.c 2014-02-24 22:00:25.136048921 +0100 -@@ -39,6 +39,7 @@ - #include <ctype.h> - #include <stdbool.h> - #include <math.h> -+#include <locale.h> - #include "talloc.h" - #include "gl_common.h" - #include "old_vo_wrapper.h" -@@ -823,7 +824,10 @@ - - static void replace_var_float(char **text, const char *name, float replace) - { -+ char *tmp = setlocale(LC_NUMERIC, NULL); -+ setlocale(LC_NUMERIC, "C"); - char *s = talloc_asprintf(NULL, "%e", replace); -+ setlocale(LC_NUMERIC, tmp); - replace_var_str(text, name, s); - talloc_free(s); - } - |