[PATCH (speechd) 2/3] Fix a locking issue in _output_get_voices.
Christopher Brannon
cmbrannon79 at gmail.com
Sun Feb 14 22:57:51 CET 2010
After a certain error condition, this function returned while
output_layer_mutex was locked. Fixed by replacing return with OL_RET.
---
src/server/output.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/server/output.c b/src/server/output.c
index 74fc171..9f28e6d 100644
--- a/src/server/output.c
+++ b/src/server/output.c
@@ -330,7 +330,7 @@ _output_get_voices(OutputModule *module)
if (module == NULL){
MSG(1, "ERROR: Can't list voices for broken output module");
- return -1;
+ OL_RET(-1);
}
output_send_data("LIST VOICES\n", module, 0);
reply = output_read_reply(module);
--
1.6.6.1
More information about the Speechd
mailing list