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; };