[vlmc-devel] MainWorkflow: Don't move, resize, and remove unconditionally with the same values for linked clips
Yikai Lu
git at videolan.org
Sat Jul 1 14:55:06 CEST 2017
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Jul 1 21:19:43 2017 +0900| [5d506e981858c7881ce1b1d2145a22226ec569d9] | committer: Yikai Lu
MainWorkflow: Don't move, resize, and remove unconditionally with the same values for linked clips
> https://code.videolan.org/videolan/vlmc/commit/5d506e981858c7881ce1b1d2145a22226ec569d9
---
src/Workflow/MainWorkflow.cpp | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/src/Workflow/MainWorkflow.cpp b/src/Workflow/MainWorkflow.cpp
index 5c38b52d..8685307e 100644
--- a/src/Workflow/MainWorkflow.cpp
+++ b/src/Workflow/MainWorkflow.cpp
@@ -241,28 +241,19 @@ MainWorkflow::libraryClipInfo( const QString& uuid )
void
MainWorkflow::moveClip( const QString& uuid, quint32 trackId, qint64 startFrame )
{
- auto clip = m_sequenceWorkflow->clip( uuid );
trigger( new Commands::Clip::Move( m_sequenceWorkflow, uuid, trackId, startFrame ) );
- for ( const auto& lcUuid : clip->linkedClips )
- trigger( new Commands::Clip::Move( m_sequenceWorkflow, lcUuid.toString(), trackId, startFrame ) );
}
void
MainWorkflow::resizeClip( const QString& uuid, qint64 newBegin, qint64 newEnd, qint64 newPos )
{
- auto clip = m_sequenceWorkflow->clip( uuid );
trigger( new Commands::Clip::Resize( m_sequenceWorkflow, uuid, newBegin, newEnd, newPos ) );
- for ( const auto& lcUuid : clip->linkedClips )
- trigger( new Commands::Clip::Resize( m_sequenceWorkflow, lcUuid, newBegin, newEnd, newPos ) );
}
void
MainWorkflow::removeClip( const QString& uuid )
{
- auto clip = m_sequenceWorkflow->clip( uuid );
trigger( new Commands::Clip::Remove( m_sequenceWorkflow, uuid ) );
- for ( const auto& lcUuid : clip->linkedClips )
- trigger( new Commands::Clip::Remove( m_sequenceWorkflow, lcUuid ) );
}
void
More information about the Vlmc-devel
mailing list