[haiku-commits] haiku: hrev50749 - src/kits/media

  • From: b.vitruvio@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 8 Dec 2016 17:14:22 +0100 (CET)

hrev50749 adds 1 changeset to branch 'master'
old head: a2b2f4d6427914cdcdb59943dd8e4a0bfdcd53ee
new head: b8d4709eb90052e9e3a0bcb61219a7741b83f4d2
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=b8d4709eb900+%5Ea2b2f4d64279

----------------------------------------------------------------------------

b8d4709eb900: 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.

                                [ Dario Casalinuovo <b.vitruvio@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev50749
Commit:      b8d4709eb90052e9e3a0bcb61219a7741b83f4d2
URL:         http://cgit.haiku-os.org/haiku/commit/?id=b8d4709eb900
Author:      Dario Casalinuovo <b.vitruvio@xxxxxxxxx>
Date:        Thu Dec  8 15:08:26 2016 UTC

Ticket:      https://dev.haiku-os.org/ticket/13069

----------------------------------------------------------------------------

1 file changed, 3 deletions(-)
src/kits/media/MediaEventLooper.cpp | 3 ---

----------------------------------------------------------------------------

diff --git a/src/kits/media/MediaEventLooper.cpp 
b/src/kits/media/MediaEventLooper.cpp
index 2c78e58..6f43cf6 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);
                        }


Other related posts: