From 88b7e23cebcb943aa2ce160512f4ff7afe3797a5 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Sat, 4 Apr 2009 00:08:19 -0500 Subject: Refactored the heart of the GST play code to startPlay(). --- linden/indra/llmedia/llmediaimplgstreamer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linden/indra/llmedia/llmediaimplgstreamer.h') diff --git a/linden/indra/llmedia/llmediaimplgstreamer.h b/linden/indra/llmedia/llmediaimplgstreamer.h index 37eaf53..be4b3c0 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer.h +++ b/linden/indra/llmedia/llmediaimplgstreamer.h @@ -96,6 +96,9 @@ class LLMediaImplGStreamer: /* virtual */ bool seek( double time ); /* virtual */ bool setVolume( float volume ); + void startPlay(); + + LLMediaEmitter< LLMediaObserver > getEventEmitter() const {return mEventEmitter;}; private: -- cgit v1.1 From 15296967b6beec8e6f6c5ff4b7e8c274e5d05dca Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Sun, 5 Apr 2009 23:41:16 -0500 Subject: LLMediaImplGStreamer creates new thread for playing. This keeps the viewer responsive while GStreamer does its thing. --- linden/indra/llmedia/llmediaimplgstreamer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linden/indra/llmedia/llmediaimplgstreamer.h') diff --git a/linden/indra/llmedia/llmediaimplgstreamer.h b/linden/indra/llmedia/llmediaimplgstreamer.h index be4b3c0..32e6bd1 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer.h +++ b/linden/indra/llmedia/llmediaimplgstreamer.h @@ -48,6 +48,7 @@ extern "C" { } #include "llmediaimplgstreamervidplug.h" +#include "llgstplaythread.h" class LLMediaManagerData; class LLMediaImplMaker; @@ -124,6 +125,8 @@ class LLMediaImplGStreamer: GstSLVideo *mVideoSink; GstState mState; GstState getState() const { return mState; } + + LLGstPlayThread *mPlayThread; }; class LLMediaImplGStreamerMaker : public LLMediaImplMaker -- cgit v1.1