-
Notifications
You must be signed in to change notification settings - Fork 4
/
gst-plugins-base-1.6.x.patch
155 lines (146 loc) · 4.93 KB
/
gst-plugins-base-1.6.x.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
localization patch and gst-riff gir workaround
--- ext/ogg/gstoggdemux.c Mon Jul 21 15:22:55 2014
+++ ext/ogg/gstoggdemux.c Thu Oct 02 07:54:54 2014
@@ -4761,7 +4761,14 @@
#ifdef ENABLE_NLS
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
LOCALEDIR);
+#ifdef G_OS_WIN32
+ gchar *_glib_get_locale_dir (void);
+ gchar *localedir = _glib_get_locale_dir ();
+ bindtextdomain (GETTEXT_PACKAGE, localedir);
+ g_free (localedir);
+#else
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+#endif
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif
--- gst/encoding/gstencodebin.c Mon Jul 21 15:22:56 2014
+++ gst/encoding/gstencodebin.c Thu Oct 02 07:55:07 2014
@@ -2137,7 +2137,14 @@
#ifdef ENABLE_NLS
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
LOCALEDIR);
+#ifdef G_OS_WIN32
+ gchar *_glib_get_locale_dir (void);
+ gchar *localedir = _glib_get_locale_dir ();
+ bindtextdomain (GETTEXT_PACKAGE, localedir);
+ g_free (localedir);
+#else
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+#endif
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
--- gst/playback/gstplayback.c Mon Jul 21 15:22:56 2014
+++ gst/playback/gstplayback.c Thu Oct 02 07:55:16 2014
@@ -42,7 +42,14 @@
#ifdef ENABLE_NLS
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
LOCALEDIR);
+#ifdef G_OS_WIN32
+ gchar *_glib_get_locale_dir (void);
+ gchar *localedir = _glib_get_locale_dir ();
+ bindtextdomain (GETTEXT_PACKAGE, localedir);
+ g_free (localedir);
+#else
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+#endif
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
--- gst-libs/gst/audio/gstaudiobasesrc.c Mon Jul 21 15:22:55 2014
+++ gst-libs/gst/audio/gstaudiobasesrc.c Thu Oct 02 07:55:24 2014
@@ -112,7 +112,14 @@
#ifdef ENABLE_NLS
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
LOCALEDIR);
+#ifdef G_OS_WIN32
+ gchar *_glib_get_locale_dir (void);
+ gchar *localedir = _glib_get_locale_dir ();
+ bindtextdomain (GETTEXT_PACKAGE, localedir);
+ g_free (localedir);
+#else
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+#endif
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
}
--- gst-libs/gst/pbutils/pbutils.c Mon Jul 21 15:22:55 2014
+++ gst-libs/gst/pbutils/pbutils.c Thu Oct 02 07:56:02 2014
@@ -98,7 +98,14 @@
#ifdef ENABLE_NLS
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
LOCALEDIR);
+#ifdef G_OS_WIN32
+ gchar *_glib_get_locale_dir (void);
+ gchar *localedir = _glib_get_locale_dir ();
+ bindtextdomain (GETTEXT_PACKAGE, localedir);
+ g_free (localedir);
+#else
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+#endif
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif
--- gst-libs/gst/tag/lang.c Mon Jul 21 15:22:55 2014
+++ gst-libs/gst/tag/lang.c Thu Oct 02 07:57:50 2014
@@ -150,7 +150,14 @@
#ifdef ENABLE_NLS
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
ISO_CODES_LOCALEDIR);
+#ifdef G_OS_WIN32
+ gchar *_glib_get_locale_dir (void);
+ gchar *localedir = _glib_get_locale_dir ();
+ bindtextdomain (GETTEXT_PACKAGE, localedir);
+ g_free (localedir);
+#else
bindtextdomain (GETTEXT_PACKAGE, ISO_CODES_LOCALEDIR);
+#endif
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif
--- gst-libs/gst/tag/tags.c Mon Jul 21 15:22:55 2014
+++ gst-libs/gst/tag/tags.c Thu Oct 02 07:58:17 2014
@@ -70,7 +70,14 @@
#ifdef ENABLE_NLS
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
LOCALEDIR);
+#ifdef G_OS_WIN32
+ gchar *_glib_get_locale_dir (void);
+ gchar *localedir = _glib_get_locale_dir ();
+ bindtextdomain (GETTEXT_PACKAGE, localedir);
+ g_free (localedir);
+#else
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+#endif
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif
--- tools/gst-device-monitor.c Mon Jul 21 15:22:56 2014
+++ tools/gst-device-monitor.c Thu Oct 02 07:59:52 2014
@@ -135,7 +135,14 @@
setlocale (LC_ALL, "");
#ifdef ENABLE_NLS
+#ifdef G_OS_WIN32
+ gchar *_glib_get_locale_dir (void);
+ gchar *localedir = _glib_get_locale_dir ();
+ bindtextdomain (GETTEXT_PACKAGE, localedir);
+ g_free (localedir);
+#else
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+#endif
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
#endif
--- tools/gst-play.c Mon Jul 21 15:22:56 2014
+++ tools/gst-play.c Thu Oct 02 08:00:20 2014
@@ -683,7 +683,14 @@
setlocale (LC_ALL, "");
#ifdef ENABLE_NLS
+#ifdef G_OS_WIN32
+ gchar *_glib_get_locale_dir (void);
+ gchar *localedir = _glib_get_locale_dir ();
+ bindtextdomain (GETTEXT_PACKAGE, localedir);
+ g_free (localedir);
+#else
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+#endif
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
#endif