summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-08-07 10:32:24 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-08-07 10:32:24 +0300
commita015501245b4393d7bcc98b8751616db7688b91d (patch)
tree32bdd37d16afd23e6ddcf0043eac531139ef87d6
parent12e979282a85e81261a8f5c4ea056433190391d6 (diff)
code cleaning
-rw-r--r--protocols/JabberG/src/jabber_voip.cpp6
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);