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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user