[haiku-development] Re: Event handling in BMediaEventLooper's ControlLoop

  • From: pulkomandy@xxxxxxxxxxxxx
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 04 Dec 2012 19:55:20 +0100

On 2012-12-04 at 00:42:58 [+0100], Julian Harnath 
<julian.harnath@xxxxxxxxxxxxxx> wrote:
> Hello!
> 
> While working on the "Insert filters from MediaPlayer"-Feature (which
> works quite fine already), I found a bug in BMediaEventLooper::
> ControlLoop() that was most probably introduced in a patch to it last
> year which closed ticket #7285 ("BSoundPlayer sends buffers late, with
> ever-increasing latency").
> 
> In brief: when the BMediaEventLooper::fEventQueue gets constantly filled
> with events which are late, it never reads the node control port again
> and thus never receives e.g. node stop or disconnect commands.

The patch is broken. I think it does fix some stuff, but it means the node 
isn't actually increasing latency as expected anyway. So feel free to 
revert any part of it you think is wrong.

-- 
Adrien.

Other related posts: