aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <[email protected]>2015-06-08 20:13:06 +0200
committerJean-Baptiste Mardelle <[email protected]>2015-06-08 20:13:06 +0200
commita7388d6c1ddbad39b0d40667b2972c885dfcff43 (patch)
tree7c9b4d505da01d5c856ba6b835db6f247a5b69c6
parent4ddd5cc96e55caefcb95ec40915bc0b05cf46c50 (diff)
Make sure we return a value for track functions.
-rw-r--r--src/timeline/track.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/timeline/track.cpp b/src/timeline/track.cpp
index 70939e4..680e7b1 100644
--- a/src/timeline/track.cpp
+++ b/src/timeline/track.cpp
@@ -73,15 +73,17 @@ void Track::setFps(qreal fps)
bool Track::add(qreal t, Mlt::Producer *parent, bool duplicate, int mode)
{
Mlt::Producer *cut = duplicate ? clipProducer(parent) : new Mlt::Producer(parent);
- doAdd(t, cut, mode);
+ bool result = doAdd(t, cut, mode);
delete cut;
+ return result;
}
bool Track::add(qreal t, Mlt::Producer *parent, qreal tcut, qreal dtcut, bool duplicate, int mode)
{
Mlt::Producer *cut = duplicate ? clipProducer(parent)->cut(frame(tcut), frame(dtcut)) : new Mlt::Producer(parent);
- doAdd(t, cut, mode);
+ bool result = doAdd(t, cut, mode);
delete cut;
+ return result;
}
bool Track::doAdd(qreal t, Mlt::Producer *cut, int mode)
@@ -242,6 +244,7 @@ bool Track::replace(const QString &id, Mlt::Producer *original)
} else {
delete trackProducer;
}
+ return found;
}
//TODO: cut: checkSlowMotionProducer