From 409210f5b12b64f9cef06275bb5954ec8a261731 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 25 Jun 2008 01:38:02 +0200 Subject: only install callback if a cb was passed --- src/multi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/multi.c') diff --git a/src/multi.c b/src/multi.c index 719da5f..e7db7f1 100644 --- a/src/multi.c +++ b/src/multi.c @@ -257,7 +257,7 @@ int driver_play(ca_context *c, uint32_t id, ca_proplist *proplist, ca_finish_cal for (b = p->backends; b; b = b->next) { int r; - if ((r = ca_context_play_full(b->context, id, proplist, call_closure, closure)) == CA_SUCCESS) + if ((r = ca_context_play_full(b->context, id, proplist, closure ? call_closure : NULL, closure)) == CA_SUCCESS) return r; /* We only return the first failure */ -- cgit