aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/audio/audio-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/audio/audio-api.c')
-rw-r--r--plugins/audio/audio-api.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/audio/audio-api.c b/plugins/audio/audio-api.c
index 1311b652..4c7df8b0 100644
--- a/plugins/audio/audio-api.c
+++ b/plugins/audio/audio-api.c
@@ -60,14 +60,13 @@ STATIC void freeAudio (void *context) {
STATIC json_object* init (AFB_request *request) { /* AFB_SESSION_CREATE */
- audioCtxHandleT *ctx;
json_object *jresp;
int idx;
/* create a private client context */
request->context = initAudioCtx();
- _alsa_init("default", ctx);
+ _alsa_init("default", request->context);
jresp = json_object_new_object();
json_object_object_add (jresp, "info", json_object_new_string ("Audio initialised"));