[vlmc-devel] commit: Library: Attach the base clip to the media when loading a project. (Hugo Beauzee-Luyssen )

git at videolan.org git at videolan.org
Sat Mar 13 14:07:46 CET 2010


vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Sat Mar 13 14:07:15 2010 +0100| [0d987e7ca5438c1a0845182e38d6d00cfe945d3e] | committer: Hugo Beauzee-Luyssen 

Library: Attach the base clip to the media when loading a project.

This fixes a bug when trying to add a media to the timeline from a
loaded project.

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

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

diff --git a/src/Library/Library.cpp b/src/Library/Library.cpp
index b73c9c7..67bab16 100644
--- a/src/Library/Library.cpp
+++ b/src/Library/Library.cpp
@@ -61,7 +61,6 @@ Library::loadProject( const QDomElement& doc )
     if ( clips.isNull() == true )
         return ;
     load( clips, this );
-    qDebug() << m_clips;
     emit projectLoaded();
 }
 
diff --git a/src/Library/MediaContainer.cpp b/src/Library/MediaContainer.cpp
index 8565bd7..b97c5b2 100644
--- a/src/Library/MediaContainer.cpp
+++ b/src/Library/MediaContainer.cpp
@@ -206,6 +206,7 @@ MediaContainer::load( const QDomElement &clips, MediaContainer *parentMC )
             if ( m != NULL )
             {
                 c = new Clip( m, 0, -1, uuid );
+                m->setBaseClip( c );
                 addClip( c );
             }
         }



More information about the Vlmc-devel mailing list