Skip to content

Commit

Permalink
ExternalStreamHandler: add a (very) short delay when waiting for data.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoet committed Dec 11, 2018
1 parent c77bfce commit 91eb0af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/libs/libmythtv/recorders/ExternalStreamHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,8 @@ void ExternalStreamHandler::run(void)
nodata_timer.stop();
continue;
}

std::this_thread::sleep_for(std::chrono::milliseconds(50));
}
}
else
Expand All @@ -741,6 +743,7 @@ void ExternalStreamHandler::run(void)
if (len < TS_PACKET_SIZE)
{
LOG(VB_RECORD, LOG_INFO, LOC + "Waiting for a full TS packet.");
std::this_thread::sleep_for(std::chrono::microseconds(50));
continue;
}

Expand Down

0 comments on commit 91eb0af

Please sign in to comment.