[vlmc-devel] ClipRenderer: setInput when a clip is set
Yikai Lu
git at videolan.org
Fri Jun 30 08:14:40 CEST 2017
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Fri Jun 30 15:12:18 2017 +0900| [12105541562aff0fa97dc32e43ea794c337fe536] | committer: Yikai Lu
ClipRenderer: setInput when a clip is set
> https://code.videolan.org/videolan/vlmc/commit/12105541562aff0fa97dc32e43ea794c337fe536
---
src/Renderer/ClipRenderer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Renderer/ClipRenderer.cpp b/src/Renderer/ClipRenderer.cpp
index 68fada7d..2b0fc79c 100644
--- a/src/Renderer/ClipRenderer.cpp
+++ b/src/Renderer/ClipRenderer.cpp
@@ -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 );
More information about the Vlmc-devel
mailing list