[vlmc-devel] ITrack: Use an appropriate type for arguments of move function
Yikai Lu
git at videolan.org
Sat Jul 29 15:19:37 CEST 2017
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Jul 29 21:59:25 2017 +0900| [d776fa28e8446e35e122db1d214f04f4052cf585] | committer: Yikai Lu
ITrack: Use an appropriate type for arguments of move function
> https://code.videolan.org/videolan/vlmc/commit/d776fa28e8446e35e122db1d214f04f4052cf585
---
src/Backend/ITrack.h | 2 +-
src/Backend/MLT/MLTTrack.cpp | 2 +-
src/Backend/MLT/MLTTrack.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Backend/ITrack.h b/src/Backend/ITrack.h
index 1793193a..f9c9a463 100644
--- a/src/Backend/ITrack.h
+++ b/src/Backend/ITrack.h
@@ -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;
diff --git a/src/Backend/MLT/MLTTrack.cpp b/src/Backend/MLT/MLTTrack.cpp
index 9660a607..b0ccd16a 100644
--- a/src/Backend/MLT/MLTTrack.cpp
+++ b/src/Backend/MLT/MLTTrack.cpp
@@ -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 ) ) );
diff --git a/src/Backend/MLT/MLTTrack.h b/src/Backend/MLT/MLTTrack.h
index 5a30c362..abd6d751 100644
--- a/src/Backend/MLT/MLTTrack.h
+++ b/src/Backend/MLT/MLTTrack.h
@@ -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;
More information about the Vlmc-devel
mailing list