From 713001efd41390bbcb28d071771ffae1201bab94 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Wed, 1 Apr 2009 23:15:29 -0500 Subject: Added LLMediaImplCommon::setDebugLevel(). --- linden/indra/llmedia/llmediaimplcommon.cpp | 12 +++++++++++- linden/indra/llmedia/llmediaimplcommon.h | 2 ++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'linden/indra/llmedia') diff --git a/linden/indra/llmedia/llmediaimplcommon.cpp b/linden/indra/llmedia/llmediaimplcommon.cpp index abb61e1..48b3973 100644 --- a/linden/indra/llmedia/llmediaimplcommon.cpp +++ b/linden/indra/llmedia/llmediaimplcommon.cpp @@ -66,7 +66,8 @@ LLMediaImplCommon::LLMediaImplCommon() : mCommand( LLMediaBase::COMMAND_NONE ), mStatus( LLMediaBase::STATUS_UNKNOWN ), mVolume( 0 ), - mLooping( false ) + mLooping( false ), + mDebugLevel( LLMediaBase::DEBUG_LEVEL_NONE ) { } @@ -92,6 +93,15 @@ bool LLMediaImplCommon::reset() //////////////////////////////////////////////////////////////////////////////// // virtual (derives from LLMediaBase) +bool LLMediaImplCommon::setDebugLevel( LLMediaBase::EDebugLevel level ) +{ + mDebugLevel = level; + + return true; +} + +//////////////////////////////////////////////////////////////////////////////// +// virtual (derives from LLMediaBase) bool LLMediaImplCommon::setMimeType( const std::string mime_type ) { mMimeType = mime_type; diff --git a/linden/indra/llmedia/llmediaimplcommon.h b/linden/indra/llmedia/llmediaimplcommon.h index aa6c4d5..8a726f1 100644 --- a/linden/indra/llmedia/llmediaimplcommon.h +++ b/linden/indra/llmedia/llmediaimplcommon.h @@ -54,6 +54,7 @@ class LLMediaImplCommon : // housekeeping virtual bool init(); virtual bool reset(); + virtual bool setDebugLevel( LLMediaBase::EDebugLevel level ); virtual bool setMimeType( const std::string url ); virtual std::string getMimeType() const; virtual std::string getMediaURL() const; @@ -156,6 +157,7 @@ class LLMediaImplCommon : LLMediaBase::ECommand mCommand; LLMediaBase::EStatus mStatus; bool mLooping; + LLMediaBase::EDebugLevel mDebugLevel; }; #endif // LLMEDIAIMPLCOMMON_H -- cgit v1.1