Commit b8ef77aa authored by luyikei's avatar luyikei

SequenceWorkflow: Use qint64 for position

parent 63d7a8f2
......@@ -65,7 +65,7 @@ SequenceWorkflow::~SequenceWorkflow()
}
QUuid
SequenceWorkflow::addClip( QSharedPointer<::Clip> clip, quint32 trackId, qint32 pos, const QUuid& uuid, bool isAudioClip )
SequenceWorkflow::addClip( QSharedPointer<::Clip> clip, quint32 trackId, qint64 pos, const QUuid& uuid, bool isAudioClip )
{
auto t = track( trackId, isAudioClip );
auto ret = t->insertAt( *clip->input(), pos );
......@@ -306,7 +306,7 @@ SequenceWorkflow::trackId( const QUuid& uuid )
return it.value()->trackId;
}
qint32
qint64
SequenceWorkflow::position( const QUuid& uuid )
{
auto it = m_clips.find( uuid );
......
......@@ -91,7 +91,7 @@ class SequenceWorkflow : public QObject
* clip instance in the sequence workflow.
* This instance UUID must be used to manipulate this new clip instance
*/
QUuid addClip( QSharedPointer<::Clip> clip, quint32 trackId, qint32 pos,
QUuid addClip( QSharedPointer<::Clip> clip, quint32 trackId, qint64 pos,
const QUuid& uuid, bool isAudioClip );
bool moveClip( const QUuid& uuid, quint32 trackId, qint64 pos );
bool resizeClip( const QUuid& uuid, qint64 newBegin,
......@@ -106,7 +106,7 @@ class SequenceWorkflow : public QObject
QSharedPointer<ClipInstance> clip( const QUuid& uuid );
quint32 trackId( const QUuid& uuid );
qint32 position( const QUuid& uuid );
qint64 position( const QUuid& uuid );
Backend::IInput* input();
Backend::IInput* trackInput( quint32 trackId );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment