[vlmc-devel] commit: Clip: Some kind of sanity check. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Wed Jun 9 00:34:00 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Tue Jun  8 23:57:51 2010 +0200| [ddd529822ea80408beae13b9b96f824ecd956ad8] | committer: Hugo Beauzée-Luyssen 

Clip: Some kind of sanity check.

Solving a warning at the same time.

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

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

diff --git a/src/Media/Clip.cpp b/src/Media/Clip.cpp
index 2068810..de81b22 100644
--- a/src/Media/Clip.cpp
+++ b/src/Media/Clip.cpp
@@ -278,7 +278,7 @@ Clip::isChild( const QUuid &uuid) const
 void
 Clip::mediaMetadataUpdated( const Media *media )
 {
-    Q_ASSERT ( isRootClip() == true );
+    Q_ASSERT ( isRootClip() == true && m_media == media );
     if ( m_end == 0 )
     {
         m_begin = 0;



More information about the Vlmc-devel mailing list