diff options
author | McCabe Maxsted | 2009-02-13 20:13:22 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-02-13 20:13:22 -0700 |
commit | 7d2266b138c171e84f8b06b26e344bc4425aecf8 (patch) | |
tree | 435d84205e65bfe5a0dc87065e89969b132ca684 /linden/indra/llmedia/llmediaimplgstreamer.cpp | |
parent | develop.py should now work again under windows (diff) | |
download | meta-impy-7d2266b138c171e84f8b06b26e344bc4425aecf8.zip meta-impy-7d2266b138c171e84f8b06b26e344bc4425aecf8.tar.gz meta-impy-7d2266b138c171e84f8b06b26e344bc4425aecf8.tar.bz2 meta-impy-7d2266b138c171e84f8b06b26e344bc4425aecf8.tar.xz |
Removed junk code from gstreamer
Diffstat (limited to 'linden/indra/llmedia/llmediaimplgstreamer.cpp')
-rw-r--r-- | linden/indra/llmedia/llmediaimplgstreamer.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/linden/indra/llmedia/llmediaimplgstreamer.cpp b/linden/indra/llmedia/llmediaimplgstreamer.cpp index 18afc45..b90d6e8 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer.cpp +++ b/linden/indra/llmedia/llmediaimplgstreamer.cpp | |||
@@ -43,10 +43,6 @@ extern "C" { | |||
43 | 43 | ||
44 | #include "llmediaimplgstreamervidplug.h" | 44 | #include "llmediaimplgstreamervidplug.h" |
45 | 45 | ||
46 | #ifdef LL_GST_SOUNDSINK | ||
47 | #include "llmediaimplgstreamersndplug.h" | ||
48 | #endif // LL_GST_SOUNDSINK | ||
49 | |||
50 | #include "llmediaimplgstreamer_syms.h" | 46 | #include "llmediaimplgstreamer_syms.h" |
51 | 47 | ||
52 | #include "llerror.h" | 48 | #include "llerror.h" |
@@ -77,9 +73,6 @@ LLMediaImplGStreamer () : | |||
77 | mPlaybin ( NULL ), | 73 | mPlaybin ( NULL ), |
78 | mVideoSink ( NULL ), | 74 | mVideoSink ( NULL ), |
79 | mState( GST_STATE_NULL ) | 75 | mState( GST_STATE_NULL ) |
80 | #ifdef LL_GST_SOUNDSINK | ||
81 | ,mAudioSink ( NULL ) | ||
82 | #endif // LL_GST_SOUNDSINK | ||
83 | { | 76 | { |
84 | LL_DEBUGS("MediaManager") << "constructing media..." << LL_ENDL; | 77 | LL_DEBUGS("MediaManager") << "constructing media..." << LL_ENDL; |
85 | mVolume = -1.0; // XXX Hack to make the vould change happend first time | 78 | mVolume = -1.0; // XXX Hack to make the vould change happend first time |
@@ -115,21 +108,6 @@ LLMediaImplGStreamer () : | |||
115 | } | 108 | } |
116 | 109 | ||
117 | g_object_set(mPlaybin, "video-sink", mVideoSink, NULL); | 110 | g_object_set(mPlaybin, "video-sink", mVideoSink, NULL); |
118 | |||
119 | #ifdef LL_GST_SOUNDSINK | ||
120 | LL_DEBUGS("MediaManager") << "extrenal audio sink..." << LL_ENDL; | ||
121 | // instantiate and connect a custom audio sink | ||
122 | mAudioSink = | ||
123 | GST_SLSOUND(llgst_element_factory_make ("private-slsound", "slsound")); | ||
124 | if (!mAudioSink) | ||
125 | { | ||
126 | LL_WARN("MediaImpl") << "Could not instantiate private-slsound element." << LL_ENDL; | ||
127 | // todo: cleanup. | ||
128 | return; // error | ||
129 | } | ||
130 | |||
131 | g_object_set(mPlaybin, "audio-sink", mAudioSink, NULL); | ||
132 | #endif | ||
133 | } | 111 | } |
134 | } | 112 | } |
135 | 113 | ||
@@ -412,9 +390,6 @@ bool LLMediaImplGStreamer::navigateTo (const std::string urlIn) | |||
412 | << LL_ENDL; | 390 | << LL_ENDL; |
413 | 391 | ||
414 | if (NULL == mPump | 392 | if (NULL == mPump |
415 | #ifdef LL_GST_SOUNDSINK | ||
416 | || NULL == mAudioSink | ||
417 | #endif | ||
418 | || NULL == mPlaybin) | 393 | || NULL == mPlaybin) |
419 | { | 394 | { |
420 | return false; | 395 | return false; |
@@ -479,9 +454,6 @@ bool LLMediaImplGStreamer::updateMedia() | |||
479 | 454 | ||
480 | // sanity check | 455 | // sanity check |
481 | if (NULL == mPump | 456 | if (NULL == mPump |
482 | #ifdef LL_GST_SOUNDSINK | ||
483 | || NULL == mAudioSink | ||
484 | #endif | ||
485 | || NULL == mPlaybin) | 457 | || NULL == mPlaybin) |
486 | { | 458 | { |
487 | #ifdef LL_GST_REPORT_STATE_CHANGES | 459 | #ifdef LL_GST_REPORT_STATE_CHANGES |