diff options
Diffstat (limited to '')
-rw-r--r-- | ChangeLog.txt | 4 | ||||
-rw-r--r-- | linden/indra/llmedia/llmediaimplgstreamer.cpp | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 0cfbbaf..f9ecbc3 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,6 +1,10 @@ | |||
1 | 2009-04-18 Jacek Antonelli <jacek.antonelli@gmail.com> | 1 | 2009-04-18 Jacek Antonelli <jacek.antonelli@gmail.com> |
2 | 2 | ||
3 | * linden/indra/llmedia/llmediaimplgstreamer.cpp: | 3 | * linden/indra/llmedia/llmediaimplgstreamer.cpp: |
4 | LLMediaImplGStreamer::play() is no-op if already playing. | ||
5 | |||
6 | |||
7 | * linden/indra/llmedia/llmediaimplgstreamer.cpp: | ||
4 | Removed some useless code from LLMediaImplGStreamer::startPlay(). | 8 | Removed some useless code from LLMediaImplGStreamer::startPlay(). |
5 | 9 | ||
6 | 10 | ||
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 | { |