startup crash fix

meow-7.2.2
Mnikolenko Productengine 2017-10-03 15:17:35 +03:00
parent e0265d3754
commit 21d8a7f09c
1 changed files with 1 additions and 1 deletions

View File

@ -872,7 +872,7 @@ void LLMediaCtrl::calcOffsetsAndSize(S32 *x_offset, S32 *y_offset, S32 *width, S
if (mStretchToFill)
{
if (mMaintainAspectRatio)
if (mMaintainAspectRatio && mMediaSource && mMediaSource->getMediaPlugin())
{
F32 media_aspect = (F32)(mMediaSource->getMediaPlugin()->getWidth()) / (F32)(mMediaSource->getMediaPlugin()->getHeight());
F32 view_aspect = (F32)(r.getWidth()) / (F32)(r.getHeight());