[vlmc-devel] commit: Timeline: Don't save begin and end are they are useless. ( Hugo Beauzee-Luyssen )
git at videolan.org
git at videolan.org
Sat Mar 13 14:39:49 CET 2010
vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Sat Mar 13 14:29:52 2010 +0100| [494f1396b92bcdd8e1e77ebe2915659f12180362] | committer: Hugo Beauzee-Luyssen
Timeline: Don't save begin and end are they are useless.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=494f1396b92bcdd8e1e77ebe2915659f12180362
---
src/Workflow/MainWorkflow.cpp | 7 +------
src/Workflow/TrackWorkflow.cpp | 2 --
2 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/src/Workflow/MainWorkflow.cpp b/src/Workflow/MainWorkflow.cpp
index b81b8d3..3b30965 100644
--- a/src/Workflow/MainWorkflow.cpp
+++ b/src/Workflow/MainWorkflow.cpp
@@ -316,13 +316,9 @@ MainWorkflow::loadProject( const QDomElement &root )
{
//Iterate over clip fields:
QString uuid;
- QString begin;
- QString end;
QString startFrame;
uuid = clip.attribute( "uuid" );
- begin = clip.attribute( "begin" );
- end = clip.attribute( "end" );
startFrame = clip.attribute( "startFrame" );
if ( uuid.isEmpty() == true || startFrame.isEmpty() == true )
@@ -334,8 +330,7 @@ MainWorkflow::loadProject( const QDomElement &root )
Clip* c = Library::getInstance()->clip( uuid );
if ( c != NULL )
{
- addClip( new Clip( c, begin.toLongLong(), end.toLongLong() ),
- trackId, startFrame.toLongLong(), type );
+ addClip( new Clip( c ), trackId, startFrame.toLongLong(), type );
}
clip = clip.nextSibling().toElement();
}
diff --git a/src/Workflow/TrackWorkflow.cpp b/src/Workflow/TrackWorkflow.cpp
index f987b80..040704c 100644
--- a/src/Workflow/TrackWorkflow.cpp
+++ b/src/Workflow/TrackWorkflow.cpp
@@ -400,8 +400,6 @@ void TrackWorkflow::save( QXmlStreamWriter& project ) const
project.writeStartElement( "clip" );
project.writeAttribute( "uuid", it.value()->getClip()->getParent()->fullId() );
project.writeAttribute( "startFrame", QString::number( it.key() ) );
- project.writeAttribute( "begin", QString::number( it.value()->getClip()->begin() ) );
- project.writeAttribute( "end", QString::number( it.value()->getClip()->end() ) );
project.writeEndElement();
}
}
More information about the Vlmc-devel
mailing list