diff options
Diffstat (limited to 'linden/indra/llmedia')
-rw-r--r-- | linden/indra/llmedia/llmediaimplgstreamer.cpp | 28 | ||||
-rw-r--r-- | linden/indra/llmedia/llmediaimplgstreamer.h | 15 | ||||
-rw-r--r-- | linden/indra/llmedia/llmediaimplgstreamervidplug.cpp | 6 |
3 files changed, 7 insertions, 42 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 |
diff --git a/linden/indra/llmedia/llmediaimplgstreamer.h b/linden/indra/llmedia/llmediaimplgstreamer.h index 4b9353b..5b493ad 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer.h +++ b/linden/indra/llmedia/llmediaimplgstreamer.h | |||
@@ -31,7 +31,7 @@ | |||
31 | */ | 31 | */ |
32 | 32 | ||
33 | // header guard | 33 | // header guard |
34 | ///#ifndef llmediaimplgstreamer_h | 34 | #ifndef llmediaimplgstreamer_h |
35 | #define llmediaimplgstreamer_h | 35 | #define llmediaimplgstreamer_h |
36 | 36 | ||
37 | #include "llmediaimplcommon.h" | 37 | #include "llmediaimplcommon.h" |
@@ -42,14 +42,12 @@ | |||
42 | extern "C" { | 42 | extern "C" { |
43 | #include <stdio.h> | 43 | #include <stdio.h> |
44 | #include <gst/gst.h> | 44 | #include <gst/gst.h> |
45 | #include <apr_pools.h> | 45 | |
46 | #include <apr_dso.h> | 46 | #include "apr_pools.h" |
47 | #include "apr_dso.h" | ||
47 | } | 48 | } |
48 | 49 | ||
49 | #include "llmediaimplgstreamervidplug.h" | 50 | #include "llmediaimplgstreamervidplug.h" |
50 | #ifdef LL_GST_SOUNDSINK | ||
51 | #include "llmediaimplgstreamersndplug.h" | ||
52 | #endif // LL_GST_SOUNDSINK | ||
53 | 51 | ||
54 | class LLMediaManagerData; | 52 | class LLMediaManagerData; |
55 | class LLMediaImplMaker; | 53 | class LLMediaImplMaker; |
@@ -100,9 +98,6 @@ class LLMediaImplGStreamer: | |||
100 | GstElement *mPlaybin; | 98 | GstElement *mPlaybin; |
101 | GstSLVideo *mVideoSink; | 99 | GstSLVideo *mVideoSink; |
102 | GstState mState; | 100 | GstState mState; |
103 | #ifdef LL_GST_SOUNDSINK | ||
104 | GstSLSound *mAudioSink; | ||
105 | #endif // LL_GST_SOUNDSINK | ||
106 | GstState getState() const { return mState; } | 101 | GstState getState() const { return mState; } |
107 | }; | 102 | }; |
108 | 103 | ||
@@ -132,4 +127,4 @@ public: | |||
132 | 127 | ||
133 | ///#endif // LL_GSTREAMER_ENABLED | 128 | ///#endif // LL_GSTREAMER_ENABLED |
134 | 129 | ||
135 | ///#endif // llmediaimplgstreamer_h | 130 | #endif // llmediaimplgstreamer_h |
diff --git a/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp b/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp index 892c50d..c95ef36 100644 --- a/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp +++ b/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp | |||
@@ -68,10 +68,8 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ( | |||
68 | GST_STATIC_CAPS (SLV_ALLCAPS) | 68 | GST_STATIC_CAPS (SLV_ALLCAPS) |
69 | ); | 69 | ); |
70 | 70 | ||
71 | GST_BOILERPLATE (GstSLVideo, | 71 | GST_BOILERPLATE (GstSLVideo, gst_slvideo, GstVideoSink, |
72 | gst_slvideo, | 72 | GST_TYPE_VIDEO_SINK); |
73 | GstVideoSink, | ||
74 | GST_TYPE_VIDEO_SINK); | ||
75 | 73 | ||
76 | static void gst_slvideo_set_property (GObject * object, guint prop_id, | 74 | static void gst_slvideo_set_property (GObject * object, guint prop_id, |
77 | const GValue * value, | 75 | const GValue * value, |