diff options
Diffstat (limited to 'linden/indra/llmedia/llmediaimplgstreamer.cpp')
-rw-r--r-- | linden/indra/llmedia/llmediaimplgstreamer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linden/indra/llmedia/llmediaimplgstreamer.cpp b/linden/indra/llmedia/llmediaimplgstreamer.cpp index b54d088..8b0363a 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer.cpp +++ b/linden/indra/llmedia/llmediaimplgstreamer.cpp | |||
@@ -185,11 +185,15 @@ startup ( LLMediaManagerData* init_data ) | |||
185 | else | 185 | else |
186 | WARNMSG("gst_segtrap_set_enabled() is not available; Automated crash-reporter may cease to function until next restart."); | 186 | WARNMSG("gst_segtrap_set_enabled() is not available; Automated crash-reporter may cease to function until next restart."); |
187 | 187 | ||
188 | // Protect against GStreamer resetting the locale, yuck. | ||
189 | std::string saved_locale = setlocale(LC_ALL, NULL); | ||
188 | if (0 == llgst_init_check(NULL, NULL, NULL)) | 190 | if (0 == llgst_init_check(NULL, NULL, NULL)) |
189 | { | 191 | { |
190 | WARNMSG("GST init failed for unspecified reason."); | 192 | WARNMSG("GST init failed for unspecified reason."); |
193 | setlocale(LC_ALL, saved_locale.c_str() ); | ||
191 | return false; | 194 | return false; |
192 | } | 195 | } |
196 | setlocale(LC_ALL, saved_locale.c_str() ); | ||
193 | 197 | ||
194 | // Init our custom plugins - only really need do this once. | 198 | // Init our custom plugins - only really need do this once. |
195 | gst_slvideo_init_class(); | 199 | gst_slvideo_init_class(); |