ges-launch: remove dead code

duration can't be smaller than 0 because it's unsigned,
and it can't be 0 because 0 is transformed to CLOCK_TIME_NONE
earlier.

Coverity CID 1211822.
This commit is contained in:
Tim-Philipp Müller 2014-05-05 11:58:45 +01:00
parent 726c13d34f
commit 10820bd41d

View file

@ -329,11 +329,6 @@ create_timeline (int nbargs, gchar ** argv, const gchar * proj_uri)
} }
else if (!g_strcmp0 ("+transition", source)) { else if (!g_strcmp0 ("+transition", source)) {
if (duration <= 0) {
g_error ("durations must be greater than 0");
goto build_failure;
}
clip = GES_CLIP (ges_transition_clip_new_for_nick (arg0)); clip = GES_CLIP (ges_transition_clip_new_for_nick (arg0));
if (!clip) { if (!clip) {