diff options
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/llmedia/llmediaimplgstreamer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linden/indra/llmedia/llmediaimplgstreamer.cpp b/linden/indra/llmedia/llmediaimplgstreamer.cpp index 5a8a8e0..fa42756 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer.cpp +++ b/linden/indra/llmedia/llmediaimplgstreamer.cpp | |||
@@ -81,6 +81,7 @@ LLMediaImplGStreamer () : | |||
81 | #endif // LL_GST_SOUNDSINK | 81 | #endif // LL_GST_SOUNDSINK |
82 | { | 82 | { |
83 | LL_DEBUGS("MediaManager") << "constructing media..." << LL_ENDL; | 83 | LL_DEBUGS("MediaManager") << "constructing media..." << LL_ENDL; |
84 | mVolume = -1.0; // XXX Hack to make the vould change happend first time | ||
84 | 85 | ||
85 | setMediaDepth(4); | 86 | setMediaDepth(4); |
86 | 87 | ||
@@ -657,6 +658,12 @@ bool | |||
657 | LLMediaImplGStreamer:: | 658 | LLMediaImplGStreamer:: |
658 | setVolume(float volume) | 659 | setVolume(float volume) |
659 | { | 660 | { |
661 | // XXX hack to make volume volume changes less othen | ||
662 | // bug in gstreamer 0.10.21 | ||
663 | if(mVolume == volume) | ||
664 | return true; | ||
665 | |||
666 | LL_DEBUGS("MediaImpl") << "setVolume(" << volume << ") : " << getpid() << LL_ENDL; | ||
660 | mVolume = volume; | 667 | mVolume = volume; |
661 | if (mPlaybin) | 668 | if (mPlaybin) |
662 | { | 669 | { |