[vlmc-devel] ClipRenderer: Fix not playing preview sometimes

Yikai Lu git at videolan.org
Mon Dec 12 05:22:18 CET 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sun Dec 11 21:42:01 2016 -0600| [f13df95977660215d77e7e5819617dbd2840df26] | committer: Yikai Lu

ClipRenderer: Fix not playing preview sometimes

> https://code.videolan.org/videolan/vlmc/commit/f13df95977660215d77e7e5819617dbd2840df26
---

 src/Renderer/ClipRenderer.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Renderer/ClipRenderer.cpp b/src/Renderer/ClipRenderer.cpp
index e34c59b..5c86a3a 100644
--- a/src/Renderer/ClipRenderer.cpp
+++ b/src/Renderer/ClipRenderer.cpp
@@ -92,8 +92,9 @@ ClipRenderer::startPreview()
     updateInfos( m_selectedClip );
     setInput( m_selectedClip->input() );
 
-    m_output->start();
     m_input->setPosition( 0 );
+    m_input->setPause( false );
+    m_output->start();
 
     m_clipLoaded = true;
     m_mediaChanged = false;



More information about the Vlmc-devel mailing list