Commit f5ab750c authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen

Library: Give debug information when clips are added

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