mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
encoding-target: Do not unconditionally break when searching for a target
Otherwise the loop is useless! Fixes CID 1338051
This commit is contained in:
parent
e51c9a3dad
commit
83fa06aab5
1 changed files with 3 additions and 1 deletions
|
@ -890,7 +890,9 @@ gst_encoding_target_load (const gchar * name, const gchar * category,
|
|||
for (i = 0; encoding_target_dirs[i]; i++) {
|
||||
target = gst_encoding_target_subload (encoding_target_dirs[i],
|
||||
category, lfilename, error);
|
||||
break;
|
||||
|
||||
if (target)
|
||||
break;
|
||||
}
|
||||
g_strfreev (encoding_target_dirs);
|
||||
if (target)
|
||||
|
|
Loading…
Reference in a new issue