diff options
author | Jacek Antonelli | 2009-04-18 02:56:02 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-04-18 03:41:52 -0500 |
commit | a6c1d49480c27b24ecb0e7778dd44782c5fe20b1 (patch) | |
tree | 7bcd2c5f0a373b676cc01395dc86f08c3329a34b /linden/indra/llmedia/llmediaimplgstreamer.cpp | |
parent | Removed some useless code from LLMediaImplGStreamer::startPlay(). (diff) | |
download | meta-impy-a6c1d49480c27b24ecb0e7778dd44782c5fe20b1.zip meta-impy-a6c1d49480c27b24ecb0e7778dd44782c5fe20b1.tar.gz meta-impy-a6c1d49480c27b24ecb0e7778dd44782c5fe20b1.tar.bz2 meta-impy-a6c1d49480c27b24ecb0e7778dd44782c5fe20b1.tar.xz |
LLMediaImplGStreamer::play() is no-op if already playing.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmedia/llmediaimplgstreamer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linden/indra/llmedia/llmediaimplgstreamer.cpp b/linden/indra/llmedia/llmediaimplgstreamer.cpp index 5cf7eed..3fd6d6e 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer.cpp +++ b/linden/indra/llmedia/llmediaimplgstreamer.cpp | |||
@@ -792,6 +792,13 @@ bool LLMediaImplGStreamer::play() | |||
792 | if (!mPlaybin || mState == GST_STATE_NULL) | 792 | if (!mPlaybin || mState == GST_STATE_NULL) |
793 | return true; | 793 | return true; |
794 | 794 | ||
795 | |||
796 | if( getState() == GST_STATE_PLAYING ) | ||
797 | { | ||
798 | LL_DEBUGS("MediaImpl") << "... but already playing." << LL_ENDL; | ||
799 | return true; | ||
800 | } | ||
801 | |||
795 | // Clean up the existing thread, if any. | 802 | // Clean up the existing thread, if any. |
796 | if( mPlayThread != NULL && mPlayThread->isStopped()) | 803 | if( mPlayThread != NULL && mPlayThread->isStopped()) |
797 | { | 804 | { |