diff options
author | George Hazan <ghazan@miranda.im> | 2022-08-07 10:32:24 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-08-07 10:32:24 +0300 |
commit | a015501245b4393d7bcc98b8751616db7688b91d (patch) | |
tree | 32bdd37d16afd23e6ddcf0043eac531139ef87d6 | |
parent | 12e979282a85e81261a8f5c4ea056433190391d6 (diff) |
code cleaning
-rw-r--r-- | protocols/JabberG/src/jabber_voip.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_voip.cpp b/protocols/JabberG/src/jabber_voip.cpp index fec95780de..146fcfb5c4 100644 --- a/protocols/JabberG/src/jabber_voip.cpp +++ b/protocols/JabberG/src/jabber_voip.cpp @@ -257,10 +257,10 @@ static gboolean check_plugins(void) GstRegistry *registry = gst_registry_get(); gst_registry_scan_path(registry, "libs\\gst_plugins"); gboolean ret = TRUE; - for (int i = 0; needed[i]; i++) { - GstPlugin *plugin = gst_registry_find_plugin(registry, needed[i]); + for (auto &it : needed) { + GstPlugin *plugin = gst_registry_find_plugin(registry, it); if (!plugin) { - gst_print("Required gstreamer plugin '%s' not found\n", needed[i]); + gst_print("Required gstreamer plugin '%s' not found\n", it); ret = FALSE; } else gst_object_unref(plugin); |