From 4201ade5ae76b267e77c68764029a66f9a7e1cce Mon Sep 17 00:00:00 2001 From: Anjani Kumar Date: Sun, 28 Mar 2021 14:22:47 +0530 Subject: [PATCH] Fix build: refactor variables to avoid same names in a scope --- src/CallDevices.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CallDevices.cpp b/src/CallDevices.cpp index 917b86b8..1bc72941 100644 --- a/src/CallDevices.cpp +++ b/src/CallDevices.cpp @@ -112,8 +112,8 @@ addDevice(GstDevice *device) guint nCaps = gst_caps_get_size(gstcaps); for (guint i = 0; i < nCaps; ++i) { GstStructure *structure = gst_caps_get_structure(gstcaps, i); - const gchar *name = gst_structure_get_name(structure); - if (!std::strcmp(name, "video/x-raw")) { + const gchar *struct_name = gst_structure_get_name(structure); + if (!std::strcmp(struct_name, "video/x-raw")) { gint widthpx, heightpx; if (gst_structure_get(structure, "width", @@ -142,8 +142,8 @@ addDevice(GstDevice *device) for (guint j = 0; j < nRates; ++j) { const GValue *rate = gst_value_list_get_value(value, j); - if (auto fr = getFrameRate(rate); fr) - addFrameRate(caps.frameRates, *fr); + if (auto frate = getFrameRate(rate); frate) + addFrameRate(caps.frameRates, *frate); } } if (!caps.frameRates.empty())