[vlmc-devel] Add missing adjustTracks

Yikai Lu git at videolan.org
Sat Jul 23 12:06:28 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Jul 23 18:02:46 2016 +0900| [833557913375952bbddf48fb12abbf409c3cddd1] | committer: Yikai Lu

Add missing adjustTracks

> https://code.videolan.org/videolan/vlmc/commit/833557913375952bbddf48fb12abbf409c3cddd1
---

 src/Gui/timeline/main.qml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/Gui/timeline/main.qml b/src/Gui/timeline/main.qml
index 07022a2..fd68cc5 100644
--- a/src/Gui/timeline/main.qml
+++ b/src/Gui/timeline/main.qml
@@ -499,6 +499,7 @@ Rectangle {
             var type = clipInfo["audio"] ? "Audio" : "Video";
             clipInfo["selected"] = false;
             addClip( type, clipInfo["trackId"], clipInfo );
+            adjustTracks( type );
         }
 
         onClipMoved: {
@@ -513,10 +514,13 @@ Rectangle {
             else if ( oldClip["position"] !== clipInfo["position"] ) {
                 findClipItem( uuid ).position = clipInfo["position"];
             }
+            adjustTracks( type );
         }
 
         onClipRemoved: {
             removeClip( uuid );
+            adjustTracks( "Audio" );
+            adjustTracks( "Video" );
         }
 
         onClipResized: {



More information about the Vlmc-devel mailing list