summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-03-28 17:21:10 +0000
committerGitHub <noreply@github.com>2021-03-28 17:21:10 +0000
commitc5f424594590d231bb5ff80bba9feff7e415ed01 (patch)
tree77ea2f98216d0bb7abb8b5d6a31bf6a11d02a635 /src
parentMerge branch 'master' of ssh://github.com/Nheko-Reborn/nheko (diff)
parentLint Code (diff)
downloadnheko-c5f424594590d231bb5ff80bba9feff7e415ed01.tar.xz
Merge pull request #539 from anjanik012/fix_build
Fix build: refactor variables to avoid same names in a scope
Diffstat (limited to 'src')
-rw-r--r--src/CallDevices.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/CallDevices.cpp b/src/CallDevices.cpp

index 917b86b8..825d2f72 100644 --- a/src/CallDevices.cpp +++ b/src/CallDevices.cpp
@@ -111,9 +111,9 @@ addDevice(GstDevice *device) g_free(name); 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")) { + GstStructure *structure = gst_caps_get_structure(gstcaps, i); + 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())