Fix Coverity issue (Use of auto that causes a copy) 97/305897/1 accepted/tizen/unified/20240219.160401 accepted/tizen/unified/toolchain/20240311.065514 accepted/tizen/unified/x/20240220.150022
authorGilbok Lee <gilbok.lee@samsung.com>
Tue, 13 Feb 2024 06:34:04 +0000 (15:34 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Tue, 13 Feb 2024 06:34:04 +0000 (15:34 +0900)
[Version] 0.0.54
[Issue Type] Coverity

Change-Id: I7c3ffddeb9121193bf6b9006de2baca81590df71

packaging/libtrackrenderer.spec
src/gstcaps_builder.cpp

index b7aded80289ec257ec99a9b5a3f6916ce5819684..e1c6cf893351c4824b03ad140af1cf8d69acc88e 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libtrackrenderer
 Summary:    new multimedia streaming player trackrenderer
-Version:    0.0.53
+Version:    0.0.54
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index db186dbfaab1ac50e67ebef143b34f00e1d56336..4be0340f648e210f6a2c63f82e014451f5740639 100644 (file)
@@ -317,7 +317,7 @@ GstCapsBuilder::Recipe::CapsFiller GstCapsBuilder::FindCapsFiller_(
 void GstCapsBuilder::FillDefaultValue_(const GstCapsWrapper& caps,
                                        const Track& track) {
   if (kRecipes_.count(kDefaultRecipe)) {
-    const auto recipes = kRecipes_.at(kDefaultRecipe);
+    const auto& recipes = kRecipes_.at(kDefaultRecipe);
     for (auto& recipe : recipes) {
       recipe.caps_filler(caps, track);
     }