[vlmc-devel] MLTTrack: Make return values correct
Yikai Lu
git at videolan.org
Fri Aug 12 16:52:25 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed Aug 3 02:08:39 2016 +0900| [c042f2f33b740840e230f485c65dfb50e866ac07] | committer: Yikai Lu
MLTTrack: Make return values correct
> https://code.videolan.org/videolan/vlmc/commit/c042f2f33b740840e230f485c65dfb50e866ac07
---
src/Backend/MLT/MLTTrack.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Backend/MLT/MLTTrack.cpp b/src/Backend/MLT/MLTTrack.cpp
index cd51d5d..9befce6 100644
--- a/src/Backend/MLT/MLTTrack.cpp
+++ b/src/Backend/MLT/MLTTrack.cpp
@@ -89,7 +89,7 @@ MLTTrack::insertAt( Backend::IInput& input, int64_t startFrame )
{
auto mltInput = dynamic_cast<MLTInput*>( &input );
assert( mltInput );
- return !playlist()->insert_at( (int)startFrame, mltInput->producer(), 1 );
+ return playlist()->insert_at( (int)startFrame, mltInput->producer(), 1 ) != -1;
}
void
@@ -115,7 +115,7 @@ MLTTrack::move( int src, int dist )
if ( !prod )
return false;
playlist()->consolidate_blanks( 0 );
- return !playlist()->insert_at( dist, prod.get(), 1 );
+ return playlist()->insert_at( dist, prod.get(), 1 ) != -1;
}
Backend::IInput*
More information about the Vlmc-devel
mailing list