[vlmc-devel] SequenceWorkflow: Don't copy ClipInstance when resizing

Hugo Beauzée-Luyssen git at videolan.org
Sun Oct 30 22:36:38 CET 2016


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Oct 30 17:56:02 2016 +0100| [48a501d7c67af894e2a0576e28a319bad35f0bce] | committer: Hugo Beauzée-Luyssen

SequenceWorkflow: Don't copy ClipInstance when resizing

> https://code.videolan.org/videolan/vlmc/commit/48a501d7c67af894e2a0576e28a319bad35f0bce
---

 src/Workflow/SequenceWorkflow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Workflow/SequenceWorkflow.cpp b/src/Workflow/SequenceWorkflow.cpp
index 8691a43..71ed30e 100644
--- a/src/Workflow/SequenceWorkflow.cpp
+++ b/src/Workflow/SequenceWorkflow.cpp
@@ -128,7 +128,7 @@ SequenceWorkflow::resizeClip( const QUuid& uuid, qint64 newBegin, qint64 newEnd,
         vlmcCritical() << "Couldn't find a clip " << uuid;
         return false;
     }
-    auto c = it.value();
+    auto& c = it.value();
     auto trackId = c->trackId;
     auto position = c->pos;
     auto t = track( trackId, c->isAudio );



More information about the Vlmc-devel mailing list