From 9b5b68bba973c00f8151bbfb48dc94bab68df23a Mon Sep 17 00:00:00 2001 From: Gilbok Lee Date: Mon, 6 Sep 2021 11:39:29 +0900 Subject: [PATCH] Fix Coverity issue Change-Id: I053fc4dbea65cf205e63d8b9839e06538478a3b5 --- src/trackrenderer_debug.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/trackrenderer_debug.cpp b/src/trackrenderer_debug.cpp index 1d1fb33..bac2b4e 100644 --- a/src/trackrenderer_debug.cpp +++ b/src/trackrenderer_debug.cpp @@ -207,8 +207,10 @@ void FillMsgWithStreamInfo(const StreamInfo& in_info, } if (in_info.fps > 0.0) { - *out_message << "&v_framerate=" << std::fixed << std::setprecision(2) + std::stringstream fps; + fps << "&v_framerate=" << std::fixed << std::setprecision(2) << in_info.fps << "fps"; + *out_message << fps.str(); } if (in_info.drm_type > drm::Type::kNone) { -- 2.7.4