command-line-formatter: Stop uselessly looping over options
[platform/upstream/gst-editing-services.git] / ges / ges-command-line-formatter.c
index d834e39..30d1853 100644 (file)
@@ -764,6 +764,7 @@ _load (GESFormatter * self, GESTimeline * timeline, const gchar * string,
       if (gst_structure_has_name (tmp->data, options[i].long_name)
           || (strlen (name) == 1 && *name == options[i].short_name)) {
         EXEC (((ActionFromStructureFunc) options[i].callback), tmp->data, &err);
+        break;
       }
     }
   }