summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2021-01-15 15:23:13 -0300
committerThibault Saunier <tsaunier@igalia.com>2021-02-10 16:14:47 -0300
commit74460ec2219e73a9702b597071ae24f948b33d8a (patch)
treedfbb207f119b8ce52c9ca0de5c382de4a7d317ec
parentd45e594a31dcdb788cff1d20a8f275c890eafce0 (diff)
command-line-formatter: Stop uselessly looping over options
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/227>
-rw-r--r--ges/ges-command-line-formatter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ges/ges-command-line-formatter.c b/ges/ges-command-line-formatter.c
index d834e392..30d1853b 100644
--- a/ges/ges-command-line-formatter.c
+++ b/ges/ges-command-line-formatter.c
@@ -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;
}
}
}