diff options
| author | Federico Mena-Quintero <federico@ximian.com> | 2009-04-19 03:24:53 +0200 | 
|---|---|---|
| committer | Lennart Poettering <lennart@poettering.net> | 2009-04-19 03:24:53 +0200 | 
| commit | 9b75398f448af1a15a8e2859d0d115875e3b6fef (patch) | |
| tree | e66c80637874e4d1eeadbb83e3d5adfae16e9be7 /src/common.c | |
| parent | ad95e65e46aba26adb125433cf9a10fe5d0275a5 (diff) | |
pulse: don't hang when operation gets canceled
Handle properly when a sample play operation gets canceled.
http://bugs.freedesktop.org/show_bug.cgi?id=21263
Diffstat (limited to 'src/common.c')
| -rw-r--r-- | src/common.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/common.c b/src/common.c index ac8b982..e2548ec 100644 --- a/src/common.c +++ b/src/common.c @@ -663,7 +663,8 @@ const char *ca_strerror(int code) {          [-CA_ERROR_IO] = "IO error",          [-CA_ERROR_INTERNAL] = "Internal error",          [-CA_ERROR_DISABLED] = "Sound disabled", -        [-CA_ERROR_FORKED] = "Process forked" +        [-CA_ERROR_FORKED] = "Process forked", +        [-CA_ERROR_DISCONNECTED] = "Disconnected"      };      ca_return_val_if_fail(code <= 0, NULL); | 
