Commit 7f7feb73 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

ClipRenderer: Prevent starting a playback if the clip has 0 length.

Fix #402
parent 231779fc
......@@ -90,7 +90,7 @@ ClipRenderer::updateInfos( Clip* clip )
void
ClipRenderer::startPreview()
{
if ( m_selectedClip == NULL )
if ( m_selectedClip == NULL || m_selectedClip->length() == 0 )
return ;
updateInfos( m_selectedClip );
......
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