aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAnders Arnholm2008-12-19 18:32:32 +0100
committerAnders Arnholm2008-12-19 18:32:32 +0100
commit8f4a7b3649747a66d47af4af7d0d5099612cf285 (patch)
treebe480f418700180377ba48f8eb8f4342e36ea6b0
parentClean up logging to used standard LL metods. (diff)
downloadmeta-impy-8f4a7b3649747a66d47af4af7d0d5099612cf285.zip
meta-impy-8f4a7b3649747a66d47af4af7d0d5099612cf285.tar.gz
meta-impy-8f4a7b3649747a66d47af4af7d0d5099612cf285.tar.bz2
meta-impy-8f4a7b3649747a66d47af4af7d0d5099612cf285.tar.xz
Workaround for change volume bug in gstreamen 0.10.21
-rw-r--r--linden/indra/llmedia/llmediaimplgstreamer.cpp7
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
657LLMediaImplGStreamer:: 658LLMediaImplGStreamer::
658setVolume(float volume) 659setVolume(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 {