]> git.tuebingen.mpg.de Git - paraslash.git/commit
audiod: fix receiver restart delay
authorAndre <maan@p133.(none)>
Thu, 22 Jun 2006 17:35:15 +0000 (19:35 +0200)
committerAndre <maan@p133.(none)>
Thu, 22 Jun 2006 17:35:15 +0000 (19:35 +0200)
commit30c2a4cdeb8e56db492536ead6cbba79c18f8497
tree33102d12680196ee27fee313d2f85408b7b83379
parentf75fe9dd2d9379aca4b2b1a6f1523bb695a1f237
audiod: fix receiver restart delay

The current code started a new receiver node for the current format
only if the receiver_node is NULL for each slot which streams
that format. Since that pointer is only set to NULL _after_ the
writer/filters are closed, audiod did not start the new receiver
early enough.

Fix is simple: Check also the eof field in struct receiver_node.
As we're at it, rename decoder_running() to receiver_running() and
move it straight above its single caller.

As a consequence of this change, the restart_barrier has to be set
already in rn_event_handler() as this is the place where rn->eof is
set to one.
audiod.c