From b8d4709eb90052e9e3a0bcb61219a7741b83f4d2 Mon Sep 17 00:00:00 2001 From: Dario Casalinuovo Date: Thu, 8 Dec 2016 16:08:26 +0100 Subject: [PATCH] MediaEventLooper: Remove soft real time lateness bounding * The media_kit isn't an hard real time beast. Bounding lateness looked like the perfect way to enable reasonable soft real time performance and thus limiting port writes and reads between producers and consumers. It seems to don't work very well so I just remove it. * The result of the recent code simplification makes it equal to my first version, before any discussion on it happened. * Thanks to AlienSoldier for testing such issues. * Fixes #13069. --- src/kits/media/MediaEventLooper.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/kits/media/MediaEventLooper.cpp b/src/kits/media/MediaEventLooper.cpp index 2c78e5848f..6f43cf6112 100644 --- a/src/kits/media/MediaEventLooper.cpp +++ b/src/kits/media/MediaEventLooper.cpp @@ -241,9 +241,6 @@ BMediaEventLooper::ControlLoop() // the client code to detect when the buffer // is handled late or early. bigtime_t lateness = TimeSource()->RealTime() - waitUntil; - // Maximum amount of lateness we tolerate - if (lateness < 3000L) - lateness = 0; DispatchEvent(&event, lateness, hasRealtime); }