void LLViewerMediaImpl::destroyMediaSource() { mNeedsNewTexture = true; if (!mPluginBase) { return; } // Restore the texture updateMovieImage(LLUUID::null, false); destroyPlugin(); }
void LLViewerMediaImpl::destroyMediaSource() { mNeedsNewTexture = true; if(! mMediaSource) { return; } // Restore the texture updateMovieImage(LLUUID::null, false); delete mMediaSource; mMediaSource = NULL; }
void LLViewerMediaImpl::destroyMediaSource() { LLMediaManager* mgr = LLMediaManager::getInstance(); if ( mMediaSource ) { bool was_playing = LLViewerMedia::isMediaPlaying(); mMediaSource->remObserver(this); mgr->destroySource( mMediaSource ); // Restore the texture updateMovieImage(LLUUID::null, was_playing); } mMediaSource = NULL; }