db-move: moved linux-zen from [testing] to [extra] (x86_64)
[arch-packages.git] / libcanberra / repos / extra-x86_64 / libcanberra-multi-backend.patch
blobc5462404f0b3083bbb1cf73e20f78dbde24988cc
1 Index: libcanberra-0.29/src/driver-order.c
2 ===================================================================
3 --- libcanberra-0.29.orig/src/driver-order.c
4 +++ libcanberra-0.29/src/driver-order.c
5 @@ -30,6 +30,7 @@
6 #include "driver-order.h"
8 const char* const ca_driver_order[] = {
9 + "multi",
10 #ifdef HAVE_PULSE
11 "pulse",
12 #endif
13 Index: libcanberra-0.29/src/multi.c
14 ===================================================================
15 --- libcanberra-0.29.orig/src/multi.c
16 +++ libcanberra-0.29/src/multi.c
17 @@ -107,8 +107,7 @@ int driver_open(ca_context *c) {
18 int ret = CA_SUCCESS;
20 ca_return_val_if_fail(c, CA_ERROR_INVALID);
21 - ca_return_val_if_fail(c->driver, CA_ERROR_NODRIVER);
22 - ca_return_val_if_fail(!strncmp(c->driver, "multi", 5), CA_ERROR_NODRIVER);
23 + ca_return_val_if_fail(!c->driver || strncmp(c->driver, "multi", 5) == 0, CA_ERROR_NODRIVER);
24 ca_return_val_if_fail(!PRIVATE(c), CA_ERROR_STATE);
26 if (!(c->private = p = ca_new0(struct private, 1)))