From e4792e0768162d07b45f8ed19002f7a13c3bebb4 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Wed, 1 Apr 2009 23:47:05 -0500 Subject: Implemented LLMediaImplGstreamer::setDebugLevel(). --- linden/indra/llmedia/llmediaimplgstreamer.cpp | 12 ++++++++++++ linden/indra/llmedia/llmediaimplgstreamer.h | 2 ++ 2 files changed, 14 insertions(+) (limited to 'linden/indra') diff --git a/linden/indra/llmedia/llmediaimplgstreamer.cpp b/linden/indra/llmedia/llmediaimplgstreamer.cpp index 9a51b7f..82b1096 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer.cpp +++ b/linden/indra/llmedia/llmediaimplgstreamer.cpp @@ -261,6 +261,18 @@ bool LLMediaImplGStreamer::closedown() } +bool LLMediaImplGStreamer::setDebugLevel( LLMediaBase::EDebugLevel level ) +{ + // Do parent class stuff. + LLMediaImplCommon::setDebugLevel(level); + + // Set GStreamer verbosity. + gst_debug_set_default_threshold( (GstDebugLevel)level ); + + return true; +} + + /////////////////////////////////////////////////////////////////////////////// // // Uncomment the line below to enable spammy debug data. diff --git a/linden/indra/llmedia/llmediaimplgstreamer.h b/linden/indra/llmedia/llmediaimplgstreamer.h index 2918416..282da08 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer.h +++ b/linden/indra/llmedia/llmediaimplgstreamer.h @@ -69,6 +69,8 @@ class LLMediaImplGStreamer: // Sets GST_PLUGIN_PATH env var for GStreamer. static void set_gst_plugin_path(); + /* virtual */ bool setDebugLevel( LLMediaBase::EDebugLevel level ); + /* virtual */ std::string getVersion(); /* virtual */ bool navigateTo( const std::string url ); /* virtual */ bool updateMedia(); -- cgit v1.1