]> git.tuebingen.mpg.de Git - paraslash.git/commit
audiod: Set the audio format restart barrier also when closing the receiver.
authorAndre Noll <maan@systemlinux.org>
Sun, 4 Jul 2010 21:27:37 +0000 (23:27 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 4 Jul 2010 21:27:37 +0000 (23:27 +0200)
commit63cec24cc12522e25223cee8c932a88da466140e
tree996800387f3c02ed7bcb7c73e9ecf3f8db37d9f0
parent73d23e6bddcc4d1b6d46a31307ca56f586b541ad
audiod: Set the audio format restart barrier also when closing the receiver.

When the current audio file changes, it may happen that para_audiod's receiver
detects the EOF condition before the status has been updated to reflect the file
change. In this case, para_audiod might restart the old receiver even if a
different audio format is about to be streamed next.

This patch adds a per audio format 200ms delay which starts at receiver close time.
During this time interval the receiver for this audio format will not be started again.
audiod.c