Commit fec587fd authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

ClipRenderer: Fixing potential crash when unsetting media, and asking to play again.

parent b7be4a3a
......@@ -62,6 +62,7 @@ ClipRenderer::setClip( Clip* clip )
if ( clip == NULL )
{
m_selectedClip = NULL;
m_clipLoaded = false;
return ;
}
m_selectedClip = clip;
......@@ -125,10 +126,6 @@ ClipRenderer::togglePlayPause( bool forcePause )
startPreview();
return ;
}
//If for some reason, nothing was loaded in startPreview(), we just return.
if ( m_clipLoaded == false )
return ;
if ( m_paused == false && m_isRendering == true )
{
m_mediaPlayer->pause();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment