Fixed high CPU usage on fast-playing recordings that have a dynamic end time

This commit is contained in:
Thulinma 2020-06-11 12:08:43 +02:00
parent 99907782ae
commit 280743051a

View file

@ -1379,12 +1379,6 @@ namespace Mist{
bool Output::prepareNext(){
static size_t emptyCount = 0;
if (!buffer.size()){
/// \TODO Do we really need this? Seems error-prone.
if (isRecording() && M.getLive()){
selectDefaultTracks();
initialSeek();
return false;
}
thisPacket.null();
INFO_MSG("Buffer completely played out");
return true;