From 62ac8f174ac3bfe840ec5d1fb940db847d37f180 Mon Sep 17 00:00:00 2001 From: Maxim Sharabayko Date: Fri, 13 Sep 2019 20:17:08 +0200 Subject: [PATCH] [apps] Fixed warnings (no override, unused var, ...) --- apps/srt-live-transmit.cpp | 2 +- apps/transmitbase.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/srt-live-transmit.cpp b/apps/srt-live-transmit.cpp index fc41c0d53..30e7fde4d 100644 --- a/apps/srt-live-transmit.cpp +++ b/apps/srt-live-transmit.cpp @@ -339,7 +339,7 @@ int main(int argc, char** argv) // // Set global config variables // - if (cfg.chunk_size != -1) + if (cfg.chunk_size > 0) transmit_chunk_size = cfg.chunk_size; stats_writer = SrtStatsWriterFactory(cfg.stats_pf); transmit_bw_report = cfg.bw_report; diff --git a/apps/transmitbase.hpp b/apps/transmitbase.hpp index cc03b9d3a..829e8bf0f 100644 --- a/apps/transmitbase.hpp +++ b/apps/transmitbase.hpp @@ -36,6 +36,7 @@ enum PrintFormat class SrtStatsWriter { public: + virtual ~SrtStatsWriter() { }; virtual std::string WriteStats(int sid, const CBytePerfMon& mon) = 0; virtual std::string WriteBandwidth(double mbpsBandwidth) = 0; };