[vlmc-devel] Library: Register the baseClip of Media

Yikai Lu git at videolan.org
Mon Aug 22 22:01:00 CEST 2016


vlmc | branch: medialibrary | Yikai Lu <luyikei.qmltu at gmail.com> | Sun Aug 21 18:08:18 2016 -0500| [fcd8ea8d81b1f78fca46e379f0f6c0708891e698] | committer: Hugo Beauzée-Luyssen

Library: Register the baseClip of Media

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 src/Library/Library.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/Library/Library.cpp b/src/Library/Library.cpp
index e0ff208..6497a17 100644
--- a/src/Library/Library.cpp
+++ b/src/Library/Library.cpp
@@ -85,6 +85,7 @@ Library::addMedia( QSharedPointer<Media> media )
     if ( m_media.contains( media->id() ) )
         return;
     m_media[media->id()] = media;
+    m_clips[media->baseClip()->uuid()] = media->baseClip();
     connect( media.data(), &Media::subclipAdded, [this]( QSharedPointer<Clip> c ) {
         m_clips[c->uuid()] = c;
         setCleanState( false );



More information about the Vlmc-devel mailing list