From: Thibault Saunier Date: Fri, 15 Jan 2021 18:23:13 +0000 (-0300) Subject: command-line-formatter: Stop uselessly looping over options X-Git-Tag: 1.19.3~493^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74460ec2219e73a9702b597071ae24f948b33d8a;p=platform%2Fupstream%2Fgstreamer.git command-line-formatter: Stop uselessly looping over options Part-of: --- diff --git a/ges/ges-command-line-formatter.c b/ges/ges-command-line-formatter.c index d834e39..30d1853 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; } } }