Commit d776fa28 by luyikei

ITrack: Use an appropriate type for arguments of move function

parent 1181bafa
......@@ -37,7 +37,7 @@ namespace Backend
virtual void remove( int index ) = 0;
virtual bool append( IInput& input ) = 0;
// src and dist are frames.
virtual bool move( int src, int dist ) = 0;
virtual bool move( int64_t src, int64_t dist ) = 0;
virtual IInput* clip( int index ) const = 0;
virtual IInput* clipAt( int64_t position ) const = 0 ;
virtual bool resizeClip( int clip, int64_t begin, int64_t end ) = 0;
......
......@@ -108,7 +108,7 @@ MLTTrack::append( Backend::IInput& input )
}
bool
MLTTrack::move( int src, int dist )
MLTTrack::move( int64_t src, int64_t dist )
{
std::unique_ptr<Mlt::Producer> prod(
playlist()->replace_with_blank( playlist()->get_clip_index_at( src ) ) );
......
......@@ -54,7 +54,7 @@ class MLTTrack : public ITrack, public MLTInput
virtual bool insertAt( IInput& input, int64_t startFrame ) override;
virtual void remove( int index ) override;
virtual bool append( IInput& input ) override;
virtual bool move( int src, int dist ) override;
virtual bool move( int64_t src, int64_t dist ) override;
virtual IInput* clip( int index ) const override;
virtual IInput* clipAt( int64_t position ) const override;
virtual bool resizeClip( int clip, int64_t begin, int64_t end ) override;
......
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