aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-02-18 07:07:31 -0700
committerMcCabe Maxsted2009-02-18 07:07:31 -0700
commit1b7dec80a55365ebda061319a134cf87a1aaa61a (patch)
tree81291a0db8a8b8a7fe9a9fcb134fff66c8eebad1 /linden
parentAdded error checking to play/stop/pause to prevent bad looping (diff)
downloadmeta-impy-1b7dec80a55365ebda061319a134cf87a1aaa61a.zip
meta-impy-1b7dec80a55365ebda061319a134cf87a1aaa61a.tar.gz
meta-impy-1b7dec80a55365ebda061319a134cf87a1aaa61a.tar.bz2
meta-impy-1b7dec80a55365ebda061319a134cf87a1aaa61a.tar.xz
Added GStreamer version info to About > Imprudence
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/llmedia/llmediaimplgstreamer.cpp8
-rw-r--r--linden/indra/llmedia/llmediaimplgstreamer_syms_raw.inc1
-rw-r--r--linden/indra/newview/llfloaterabout.cpp10
3 files changed, 16 insertions, 3 deletions
diff --git a/linden/indra/llmedia/llmediaimplgstreamer.cpp b/linden/indra/llmedia/llmediaimplgstreamer.cpp
index d821bcd..c7f2b4a 100644
--- a/linden/indra/llmedia/llmediaimplgstreamer.cpp
+++ b/linden/indra/llmedia/llmediaimplgstreamer.cpp
@@ -127,10 +127,12 @@ LLMediaImplGStreamer::
127// virtual 127// virtual
128std::string LLMediaImplGStreamer::getVersion() 128std::string LLMediaImplGStreamer::getVersion()
129{ 129{
130 std::string rtn; 130 guint major, minor, micro, nano;
131 rtn = "[" + sLLMediaImplGStreamerReg.getImplName() + "] - GStreamer 0.10.x"; 131 llgst_version(&major, &minor, &micro, &nano);
132 return rtn; 132 std::string version = llformat("%d.%d.%d.%d",major,minor,micro,nano);
133 return version;
133} 134}
135
134// 136//
135//THIS IS THE METHOD THAT'S BREAKING STUFF 137//THIS IS THE METHOD THAT'S BREAKING STUFF
136/////////////////////////////////////////////////////////////////////////////// 138///////////////////////////////////////////////////////////////////////////////
diff --git a/linden/indra/llmedia/llmediaimplgstreamer_syms_raw.inc b/linden/indra/llmedia/llmediaimplgstreamer_syms_raw.inc
index 9996ba4..fcee823 100644
--- a/linden/indra/llmedia/llmediaimplgstreamer_syms_raw.inc
+++ b/linden/indra/llmedia/llmediaimplgstreamer_syms_raw.inc
@@ -37,6 +37,7 @@ LL_GST_SYM(true, gst_value_get_fraction_numerator, gint, const GValue *value);
37LL_GST_SYM(true, gst_value_get_fraction_denominator, gint, const GValue *value); 37LL_GST_SYM(true, gst_value_get_fraction_denominator, gint, const GValue *value);
38LL_GST_SYM(true, gst_structure_get_name, G_CONST_RETURN gchar *, const GstStructure *structure); 38LL_GST_SYM(true, gst_structure_get_name, G_CONST_RETURN gchar *, const GstStructure *structure);
39LL_GST_SYM(true, gst_element_seek, bool, GstElement *, gdouble, GstFormat, GstSeekFlags, GstSeekType, gint64, GstSeekType, gint64); 39LL_GST_SYM(true, gst_element_seek, bool, GstElement *, gdouble, GstFormat, GstSeekFlags, GstSeekType, gint64, GstSeekType, gint64);
40LL_GST_SYM(true, gst_version, void, guint *major, guint *minor, guint *micro, guint *nano);
40 41
41// optional symbols to grab 42// optional symbols to grab
42LL_GST_SYM(false, gst_segtrap_set_enabled, void, gboolean enabled); 43LL_GST_SYM(false, gst_segtrap_set_enabled, void, gboolean enabled);
diff --git a/linden/indra/newview/llfloaterabout.cpp b/linden/indra/newview/llfloaterabout.cpp
index 4953410..aeca4b5 100644
--- a/linden/indra/newview/llfloaterabout.cpp
+++ b/linden/indra/newview/llfloaterabout.cpp
@@ -42,6 +42,7 @@
42#include "llcurl.h" 42#include "llcurl.h"
43#include "llimagej2c.h" 43#include "llimagej2c.h"
44#include "audioengine.h" 44#include "audioengine.h"
45#include "llmediaimplgstreamer.h"
45 46
46#include "llviewertexteditor.h" 47#include "llviewertexteditor.h"
47#include "llviewercontrol.h" 48#include "llviewercontrol.h"
@@ -208,6 +209,15 @@ LLFloaterAbout::LLFloaterAbout()
208 LLMediaManager *mgr = LLMediaManager::getInstance(); 209 LLMediaManager *mgr = LLMediaManager::getInstance();
209 if (mgr) 210 if (mgr)
210 { 211 {
212 LLMediaBase *gstreamer = new LLMediaImplGStreamer();
213 if (gstreamer)
214 {
215 support.append("GStreamer Version: ");
216 support.append( gstreamer->getVersion() );
217 support.append("\n");
218 }
219 delete gstreamer;
220
211 LLMediaBase *media_source = mgr->createSourceFromMimeType("http", "text/html"); 221 LLMediaBase *media_source = mgr->createSourceFromMimeType("http", "text/html");
212 if (media_source) 222 if (media_source)
213 { 223 {