Parcel media crash fix

This commit is contained in:
Siana Gearz
2012-08-23 07:25:36 +02:00
parent 73099edae3
commit 7ec9af8200

View File

@@ -338,7 +338,14 @@ void LLViewerMedia::setVolume(F32 volume)
{
LLViewerMediaImpl* pimpl = *iter;
LLPluginClassMedia* plugin = pimpl->getMediaPlugin();
plugin->setVolume(volume);
if(plugin)
{
plugin->setVolume(volume);
}
else
{
llwarns << "Plug-in already destroyed" << llendl;
}
}
}