From 8f4a7b3649747a66d47af4af7d0d5099612cf285 Mon Sep 17 00:00:00 2001 From: Anders Arnholm Date: Fri, 19 Dec 2008 18:32:32 +0100 Subject: [PATCH] Workaround for change volume bug in gstreamen 0.10.21 --- 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 () : #endif // LL_GST_SOUNDSINK { LL_DEBUGS("MediaManager") << "constructing media..." << LL_ENDL; + mVolume = -1.0; // XXX Hack to make the vould change happend first time setMediaDepth(4); @@ -657,6 +658,12 @@ bool LLMediaImplGStreamer:: setVolume(float volume) { + // XXX hack to make volume volume changes less othen + // bug in gstreamer 0.10.21 + if(mVolume == volume) + return true; + + LL_DEBUGS("MediaImpl") << "setVolume(" << volume << ") : " << getpid() << LL_ENDL; mVolume = volume; if (mPlaybin) { -- 1.5.6.3