-
Notifications
You must be signed in to change notification settings - Fork 4
/
gst-plugins-ugly-1.8.x.patch
68 lines (64 loc) · 2.16 KB
/
gst-plugins-ugly-1.8.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
--- ext/dvdread/dvdreadsrc.c Thu Mar 24 18:36:44 2016
+++ ext/dvdread/dvdreadsrc.c Sat Sep 03 01:26:50 2016
@@ -1792,7 +1792,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 */
--- ext/lame/plugin.c Thu Mar 24 18:36:44 2016
+++ ext/lame/plugin.c Sat Sep 03 01:26:50 2016
@@ -30,7 +30,14 @@
plugin_init (GstPlugin * plugin)
{
#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");
#endif /* ENABLE_NLS */
--- ext/twolame/gsttwolamemp2enc.c Thu Mar 24 18:36:44 2016
+++ ext/twolame/gsttwolamemp2enc.c Sat Sep 03 01:26:50 2016
@@ -875,7 +875,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/asfdemux/gstasf.c Thu Mar 24 18:36:44 2016
+++ gst/asfdemux/gstasf.c Sat Sep 03 01:26:50 2016
@@ -39,7 +39,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 */