[vlmc-devel] Timeline: Set formats for ClipHelper

Yikai Lu git at videolan.org
Wed Jun 1 18:14:49 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue May  3 13:14:38 2016 +0900| [243fd39c00f46cf01ea47b8b212c00e7a910b075] | committer: Hugo Beauzée-Luyssen

Timeline: Set formats for ClipHelper

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

> https://code.videolan.org/videolan/vlmc/commit/243fd39c00f46cf01ea47b8b212c00e7a910b075
---

 src/Gui/timeline/TracksView.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index 04b93da..39d69b2 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -811,6 +811,7 @@ TracksView::dropEvent( QDropEvent *event )
             event->acceptProposedAction();
 
             m_dragAudioItem->m_oldTrack = m_dragAudioItem->track()->trackWorkflow();
+            m_dragAudioItem->clipHelper()->setFormats( ClipHelper::Audio );
 
             Commands::trigger( new Commands::Clip::Add( m_dragAudioItem->clipHelper(),
                                                                     m_dragAudioItem->track()->trackWorkflow(),
@@ -828,6 +829,7 @@ TracksView::dropEvent( QDropEvent *event )
             event->acceptProposedAction();
 
             m_dragVideoItem->m_oldTrack = m_dragVideoItem->track()->trackWorkflow();
+            m_dragVideoItem->clipHelper()->setFormats( ClipHelper::Video );
 
             Commands::trigger( new Commands::Clip::Add( m_dragVideoItem->clipHelper(),
                                                                     m_dragVideoItem->track()->trackWorkflow(),



More information about the Vlmc-devel mailing list