diff options
author | Jacek Antonelli | 2008-08-15 23:45:37 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:37 -0500 |
commit | 31ba05810c641f14e8ab5da8ad2aaf527779f6c1 (patch) | |
tree | c4b8d635dfb657fa4cfee7c285f8cadbf24afa90 /linden/indra/llmedia/llmediaimplgstreamer.cpp | |
parent | Second Life viewer sources 1.19.1.1 (diff) | |
download | meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.zip meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.gz meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.bz2 meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.xz |
Second Life viewer sources 1.19.1.2
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(); |