diff options
author | fulup <fulup.arfoll@iot.bzh> | 2018-05-14 19:59:22 +0200 |
---|---|---|
committer | fulup <fulup.arfoll@iot.bzh> | 2018-05-14 20:02:32 +0200 |
commit | 9f62093c6d4bf084f0e2aac9da60b3020927e938 (patch) | |
tree | 7672c83c7b608ef29927d42c2abbd46bbda42a9b /plugins/alsa/alsa-api-sndloops.c | |
parent | 36f8b0e393f8407efa79f383a58e10613d18e959 (diff) |
Move to new Romain controller version
Diffstat (limited to 'plugins/alsa/alsa-api-sndloops.c')
-rw-r--r-- | plugins/alsa/alsa-api-sndloops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/alsa/alsa-api-sndloops.c b/plugins/alsa/alsa-api-sndloops.c index be12c11..cf7bf55 100644 --- a/plugins/alsa/alsa-api-sndloops.c +++ b/plugins/alsa/alsa-api-sndloops.c @@ -139,6 +139,7 @@ OnErrorExit: CTLP_LUA2C(snd_loops, source, argsJ, responseJ) { int error; AlsaSndLoopT *sndLoop = calloc(1, sizeof (AlsaSndLoopT)); + if (json_object_get_type(argsJ) != json_type_object) { AFB_ApiError(source->api, "L2C:sndloops: invalid object type= %s", json_object_get_string(argsJ)); |