[vlmc-devel] commit: timeline: re-enable clip resizing from the end (Ludovic Fauvet )

git at videolan.org git at videolan.org
Thu Mar 18 01:19:31 CET 2010


vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Thu Mar 18 01:14:17 2010 +0100| [03c8e89130b7f547193246d5153c7e0e7dbb176f] | committer: Ludovic Fauvet 

timeline: re-enable clip resizing from the end

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=03c8e89130b7f547193246d5153c7e0e7dbb176f
---

 src/Gui/timeline/AbstractGraphicsMediaItem.cpp |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/Gui/timeline/AbstractGraphicsMediaItem.cpp b/src/Gui/timeline/AbstractGraphicsMediaItem.cpp
index 65de94a..8beaa96 100644
--- a/src/Gui/timeline/AbstractGraphicsMediaItem.cpp
+++ b/src/Gui/timeline/AbstractGraphicsMediaItem.cpp
@@ -225,9 +225,9 @@ void AbstractGraphicsMediaItem::resize( qint64 size, From from )
         if ( clip()->getMedia()->fileType() != Media::Image )
             if ( clip()->begin() + size > clip()->maxEnd() )
                 return;
-        //FIXME
-//        tracksView()->getRenderer()->resizeClip( clip(), clip()->getBegin(), clip()->getBegin() + size, 0, //This parameter is unused in this case
-//                                                 trackNumber(), mediaType() );
+        MainWorkflow::getInstance()->resizeClip( clip(), clip()->begin(),
+                                                 clip()->begin() + size, 0,
+                                                 trackNumber(), mediaType() );
     }
     else
     {
@@ -245,7 +245,6 @@ void AbstractGraphicsMediaItem::resize( qint64 size, From from )
             MainWorkflow::getInstance()->resizeClip( clip(), qMax( clip()->end() - size, (qint64)0 ), clip()->end(),
                                                      newStart, trackNumber(), mediaType() );
             setStartPos( newStart );
-            //FIXME
         }
         else
         {



More information about the Vlmc-devel mailing list