From a6c1d49480c27b24ecb0e7778dd44782c5fe20b1 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Sat, 18 Apr 2009 02:56:02 -0500 Subject: LLMediaImplGStreamer::play() is no-op if already playing. --- linden/indra/llmedia/llmediaimplgstreamer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'linden/indra') 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() if (!mPlaybin || mState == GST_STATE_NULL) return true; + + if( getState() == GST_STATE_PLAYING ) + { + LL_DEBUGS("MediaImpl") << "... but already playing." << LL_ENDL; + return true; + } + // Clean up the existing thread, if any. if( mPlayThread != NULL && mPlayThread->isStopped()) { -- cgit v1.1