Skip to content
Snippets Groups Projects
Commit 9a7aba8f authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen
Browse files

Library: Give debug information when clips are added


Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 88167ddf
No related branches found
No related tags found
Loading
......@@ -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 );
} );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment