Commit 12105541 authored by luyikei's avatar luyikei

ClipRenderer: setInput when a clip is set

parent 43c86b11
......@@ -70,6 +70,7 @@ ClipRenderer::setClip( QSharedPointer<Clip> clip )
return ;
}
m_selectedClip = clip;
setInput( clip->input() );
if ( clip->length() == 0 )
return ;
if ( m_output->isStopped() == true )
......@@ -83,7 +84,6 @@ ClipRenderer::startPreview()
{
if ( m_selectedClip == nullptr || m_selectedClip->length() == 0 )
return ;
setInput( m_selectedClip->input() );
m_input->setPosition( 0 );
m_input->setPause( false );
......
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