aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmedia
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmedia')
-rw-r--r--linden/indra/llmedia/llmediaengine.cpp12
-rw-r--r--linden/indra/llmedia/llmediaengine.h4
-rw-r--r--linden/indra/llmedia/llmediaimplquicktime.cpp9
-rw-r--r--linden/indra/llmedia/llmediaimplquicktime.h4
4 files changed, 29 insertions, 0 deletions
diff --git a/linden/indra/llmedia/llmediaengine.cpp b/linden/indra/llmedia/llmediaengine.cpp
index c0e904b..e0c532a 100644
--- a/linden/indra/llmedia/llmediaengine.cpp
+++ b/linden/indra/llmedia/llmediaengine.cpp
@@ -31,6 +31,7 @@
31 31
32#include "linden_common.h" 32#include "linden_common.h"
33#include "llmediaengine.h" 33#include "llmediaengine.h"
34#include "llmediaimplquicktime.h"
34 35
35#include "indra_constants.h" 36#include "indra_constants.h"
36#include "llstring.h" 37#include "llstring.h"
@@ -621,3 +622,14 @@ void LLMediaEngine::getNetworkProxy ( BOOL& enabledOut, LLString& addressOut,
621 excludeOut = mProxyExlude; 622 excludeOut = mProxyExlude;
622} 623}
623 624
625// get QuickTime version (returned as a number which
626// only makes sense viewed as hex
627S32 LLMediaEngine::getQuickTimeVersion()
628{
629#if LL_QUICKTIME_ENABLED
630 return LLMediaImplQuickTime::getVersion();
631#else
632 return -1;
633#endif
634}
635
diff --git a/linden/indra/llmedia/llmediaengine.h b/linden/indra/llmedia/llmediaengine.h
index e585c13..836e075 100644
--- a/linden/indra/llmedia/llmediaengine.h
+++ b/linden/indra/llmedia/llmediaengine.h
@@ -42,6 +42,9 @@
42 42
43#include "message.h" 43#include "message.h"
44 44
45// current version on my Windows system after a 7.3.1 update is 120684544 (dec) and 7318000 (hex)
46#define LL_MIN_QUICKTIME_VERSION ( 120684544 )
47
45////////////////////////////////////////////////////////////////////////////// 48//////////////////////////////////////////////////////////////////////////////
46// media engine singleton 49// media engine singleton
47class LLMediaEngine 50class LLMediaEngine
@@ -83,6 +86,7 @@ public:
83 void setAutoScaled ( BOOL autoScaledIn ); 86 void setAutoScaled ( BOOL autoScaledIn );
84 BOOL isAutoScaled (); 87 BOOL isAutoScaled ();
85 BOOL setVolume ( F32 volumeIn ); 88 BOOL setVolume ( F32 volumeIn );
89 S32 getQuickTimeVersion();
86 90
87 void setUrl ( const LLString& urlIn ); 91 void setUrl ( const LLString& urlIn );
88 const LLString& getUrl (); 92 const LLString& getUrl ();
diff --git a/linden/indra/llmedia/llmediaimplquicktime.cpp b/linden/indra/llmedia/llmediaimplquicktime.cpp
index 8bf119f..d5b3012 100644
--- a/linden/indra/llmedia/llmediaimplquicktime.cpp
+++ b/linden/indra/llmedia/llmediaimplquicktime.cpp
@@ -912,4 +912,13 @@ getMediaDuration () const
912 return result; 912 return result;
913} 913}
914 914
915// static since we need this before an impl is created by media manager
916S32 LLMediaImplQuickTime::getVersion()
917{
918 S32 version;
919 Gestalt( gestaltQuickTimeVersion, (long*)&version );
920
921 return version;
922}
923
915#endif 924#endif
diff --git a/linden/indra/llmedia/llmediaimplquicktime.h b/linden/indra/llmedia/llmediaimplquicktime.h
index 4d6d81d..8345b41 100644
--- a/linden/indra/llmedia/llmediaimplquicktime.h
+++ b/linden/indra/llmedia/llmediaimplquicktime.h
@@ -47,6 +47,7 @@
47#include "QTML.h" 47#include "QTML.h"
48#include "Movies.h" 48#include "Movies.h"
49#include "FixMath.h" 49#include "FixMath.h"
50#include "Gestalt.h"
50#include "QuickTimeStreaming.h" 51#include "QuickTimeStreaming.h"
51#endif 52#endif
52#endif 53#endif
@@ -99,6 +100,9 @@ class LLMediaImplQuickTime:
99 virtual U8* getMediaData (); 100 virtual U8* getMediaData ();
100 virtual F64 getMediaDuration () const; 101 virtual F64 getMediaDuration () const;
101 102
103 // static since we need this before an impl is created by media manager
104 static S32 getVersion();
105
102 private: 106 private:
103 // quicktime specific 107 // quicktime specific
104 Movie theMovie; 108 Movie theMovie;