[vlmc-devel] ClipRenderer: Prevent starting a playback if the clip has 0 length.

Hugo Beauzée-Luyssen git at videolan.org
Sun Sep 23 20:46:41 CEST 2012


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Sep 23 19:02:48 2012 +0300| [7f7feb73968a4150248fc2f6dd5fea88cd375acd] | committer: Hugo Beauzée-Luyssen

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

Fix #402

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=7f7feb73968a4150248fc2f6dd5fea88cd375acd
---

 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 9346a06..2b60bfa 100644
--- a/src/Renderer/ClipRenderer.cpp
+++ b/src/Renderer/ClipRenderer.cpp
@@ -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 );
 



More information about the Vlmc-devel mailing list