command-line-formatter: Stop uselessly looping over options

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/227>
This commit is contained in:
Thibault Saunier 2021-01-15 15:23:13 -03:00
parent d45e594a31
commit 74460ec221

View 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;
}
}
}