[vlmc-devel] commit: Clip: Fixing a length computing bug. (Hugo Beauzee-Luyssen )

git at videolan.org git at videolan.org
Fri Mar 12 20:06:41 CET 2010


vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Fri Mar 12 20:06:27 2010 +0100| [773f146bf1e192ce12469a4e840bf5d3771241bb] | committer: Hugo Beauzee-Luyssen 

Clip: Fixing a length computing bug.

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

 src/Media/Clip.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Media/Clip.cpp b/src/Media/Clip.cpp
index de126a8..f06a279 100644
--- a/src/Media/Clip.cpp
+++ b/src/Media/Clip.cpp
@@ -67,12 +67,12 @@ Clip::Clip( Clip *parent, qint64 begin /*= -1*/, qint64 end /*= -1*/,
 {
     if ( begin < 0 )
     {
-        m_begin = parent->begin();
+        m_begin = parent->m_begin;
         m_maxBegin = m_begin;
     }
     if ( end < 0 )
     {
-        m_end = parent->getMedia()->nbFrames();
+        m_end = parent->m_end;
         m_maxEnd = m_end;
     }
     if ( uuid.isEmpty() == true )



More information about the Vlmc-devel mailing list