]> git.tuebingen.mpg.de Git - paraslash.git/commit
audiod: Properly handle wng open failures.
authorAndre Noll <maan@systemlinux.org>
Sun, 10 May 2009 12:11:38 +0000 (14:11 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 10 May 2009 12:11:38 +0000 (14:11 +0200)
commitf87868b3147b189b6d4ee4e44817f092bd1c2895
tree0e02f7a79866c4066d1112c3a9272321960af2bc
parent4dbf56eff63e120c3888fa2badc9fbf930c6ba46
audiod: Properly handle wng open failures.

If opening the writer node group fails, no task is being registered to the
scheduler although a task structure is allocated. This makes audiod think
everything is fine until the output buffer of the receiver or a filter is
filled up which may take several seconds.

Fix this flaw by setting the error field of the wng to -E_TASK_UNREGISTERED.
This causes audiod to close the receiver node and the filter chain and to
clear the affected slot.
audiod.c
write_common.c