diff options
author | McCabe Maxsted | 2009-02-18 07:07:31 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-02-18 07:07:31 -0700 |
commit | 1b7dec80a55365ebda061319a134cf87a1aaa61a (patch) | |
tree | 81291a0db8a8b8a7fe9a9fcb134fff66c8eebad1 /linden | |
parent | Added error checking to play/stop/pause to prevent bad looping (diff) | |
download | meta-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.cpp | 8 | ||||
-rw-r--r-- | linden/indra/llmedia/llmediaimplgstreamer_syms_raw.inc | 1 | ||||
-rw-r--r-- | linden/indra/newview/llfloaterabout.cpp | 10 |
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 |
128 | std::string LLMediaImplGStreamer::getVersion() | 128 | std::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, µ, &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); | |||
37 | LL_GST_SYM(true, gst_value_get_fraction_denominator, gint, const GValue *value); | 37 | LL_GST_SYM(true, gst_value_get_fraction_denominator, gint, const GValue *value); |
38 | LL_GST_SYM(true, gst_structure_get_name, G_CONST_RETURN gchar *, const GstStructure *structure); | 38 | LL_GST_SYM(true, gst_structure_get_name, G_CONST_RETURN gchar *, const GstStructure *structure); |
39 | LL_GST_SYM(true, gst_element_seek, bool, GstElement *, gdouble, GstFormat, GstSeekFlags, GstSeekType, gint64, GstSeekType, gint64); | 39 | LL_GST_SYM(true, gst_element_seek, bool, GstElement *, gdouble, GstFormat, GstSeekFlags, GstSeekType, gint64, GstSeekType, gint64); |
40 | LL_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 |
42 | LL_GST_SYM(false, gst_segtrap_set_enabled, void, gboolean enabled); | 43 | LL_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 | { |