ges-launch: remove dead code
authorTim-Philipp Müller <tim@centricular.com>
Mon, 5 May 2014 10:58:45 +0000 (11:58 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 5 May 2014 10:58:45 +0000 (11:58 +0100)
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.

tools/ges-launch.c

index fdceb6b..e4ec8d6 100644 (file)
@@ -329,11 +329,6 @@ create_timeline (int nbargs, gchar ** argv, const gchar * proj_uri)
     }
 
     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));
 
       if (!clip) {