From a015501245b4393d7bcc98b8751616db7688b91d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 7 Aug 2022 10:32:24 +0300 Subject: code cleaning --- protocols/JabberG/src/jabber_voip.cpp | 6 +++--- 1 file 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); -- cgit v1.2.3