[vlmc-devel] Library: Give debug information when clips are added

Yikai Lu git at videolan.org
Tue Aug 23 18:01:08 CEST 2016


vlmc | branch: medialibrary | Yikai Lu <luyikei.qmltu at gmail.com> | Sun Aug 21 19:28:54 2016 -0500| [9a7aba8f4c85000c88ae920ce604c5d5cf6c5a0a] | committer: Hugo Beauzée-Luyssen

Library: Give debug information when clips are added

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

> https://code.videolan.org/videolan/vlmc/commit/9a7aba8f4c85000c88ae920ce604c5d5cf6c5a0a
---

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

diff --git a/src/Library/Library.cpp b/src/Library/Library.cpp
index 862e9f1..e02efea 100644
--- a/src/Library/Library.cpp
+++ b/src/Library/Library.cpp
@@ -101,12 +101,15 @@ Library::addMedia( QSharedPointer<Media> media )
         return;
     m_media[media->id()] = media;
     m_clips[media->baseClip()->uuid()] = media->baseClip();
+    vlmcDebug() << "Clip " << media->baseClip()->uuid().toString() << " is added to Library";
     connect( media.data(), &Media::subclipAdded, [this]( QSharedPointer<Clip> c ) {
         m_clips[c->uuid()] = c;
+        vlmcDebug() << "Clip " << c->uuid().toString() << " is added to Library";
         setCleanState( false );
     });
     connect( media.data(), &Media::subclipRemoved, [this]( const QUuid& uuid ) {
         m_clips.remove( uuid );
+        vlmcDebug() << "Clip " << uuid.toString() << " is removed in Library";
         // This seems wrong, for instance if we undo a clip splitting
         setCleanState( false );
     } );



More information about the Vlmc-devel mailing list