summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);