From b73ee0138807fdc6304cc08f47bef9ce64a644c9 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 25 Aug 2016 11:57:54 +0200 Subject: [PATCH] Fix TSStream standard input dropping packets --- src/input/input_ts.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/input_ts.cpp b/src/input/input_ts.cpp index 6dcaa7a1..dbb5b2ff 100755 --- a/src/input/input_ts.cpp +++ b/src/input/input_ts.cpp @@ -433,7 +433,9 @@ namespace Mist { lock.post(); threadCheckTimer = Util::bootSecs(); } - Util::sleep(100); + if (pushing){ + Util::sleep(100); + } } finish(); INFO_MSG("Input for stream %s closing clean", streamName.c_str());