Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
George Kiagiadakis
gst-plugins-base
Commits
d1bcdea7
Commit
d1bcdea7
authored
Jan 18, 2011
by
Tim-Philipp Müller
Browse files
pbutils: don't assume LC_MESSAGES is always defined, also check for ENABLE_NLS
Should fix build with mingw32 build bot again.
parent
cd758cdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
gst-libs/gst/pbutils/encoding-target.c
View file @
d1bcdea7
...
...
@@ -412,9 +412,23 @@ serialize_stream_profiles (GKeyFile * out, GstEncodingProfile * sprof,
static
gchar
*
get_locale
(
void
)
{
const
char
*
loc
=
setlocale
(
LC_MESSAGES
,
NULL
)
;
const
char
*
loc
=
NULL
;
gchar
*
ret
;
#ifdef ENABLE_NLS
#if defined(LC_MESSAGES)
loc
=
setlocale
(
LC_MESSAGES
,
NULL
);
GST_LOG
(
"LC_MESSAGES: %s"
,
GST_STR_NULL
(
loc
));
#elif defined(LC_ALL)
loc
=
setlocale
(
LC_ALL
,
NULL
);
GST_LOG
(
"LC_ALL: %s"
,
GST_STR_NULL
(
loc
));
#else
GST_LOG
(
"Neither LC_ALL nor LC_MESSAGES defined"
);
#endif
#else
/* !ENABLE_NLS */
GST_LOG
(
"i18n disabled"
);
#endif
if
(
loc
==
NULL
||
g_ascii_strncasecmp
(
loc
,
"en"
,
2
)
==
0
)
return
NULL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment