void LLViewerMediaImpl::destroyMediaSource()
{
	mNeedsNewTexture = true;
	if (!mPluginBase)
	{
		return;
	}
	// Restore the texture
	updateMovieImage(LLUUID::null, false);
	destroyPlugin();
}
Exemplo n.º 2
0
void LLViewerMediaImpl::destroyMediaSource()
{
	mNeedsNewTexture = true;
	if(! mMediaSource)
	{
		return;
	}
	// Restore the texture
	updateMovieImage(LLUUID::null, false);
	delete mMediaSource;
	mMediaSource = NULL;
}
Exemplo n.º 3
0
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;
}