diff options
author | Thierry Bultel <thierry.bultel@iot.bzh> | 2018-06-04 15:23:10 +0200 |
---|---|---|
committer | Thierry Bultel <thierry.bultel@iot.bzh> | 2018-06-04 15:23:10 +0200 |
commit | e5aff5427335422ba8c8487e880e150d15d0cb0b (patch) | |
tree | 67bd1574aa58c1a81551d59e7449b0fb79633069 /plugins/alsa/alsa-api-loop.c | |
parent | 07be2d7d1aa89a6e8acf589b1f84e5a5ad992c23 (diff) |
Fixed json parsing format errors
The expected format did not match the parameters
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'plugins/alsa/alsa-api-loop.c')
-rw-r--r-- | plugins/alsa/alsa-api-loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/alsa/alsa-api-loop.c b/plugins/alsa/alsa-api-loop.c index 9a746ea..16fe9fc 100644 --- a/plugins/alsa/alsa-api-loop.c +++ b/plugins/alsa/alsa-api-loop.c @@ -50,7 +50,7 @@ PUBLIC AlsaLoopSubdevT *ApiLoopFindSubdev(SoftMixerT *mixer, const char *streamU STATIC AlsaLoopSubdevT *ProcessOneSubdev(SoftMixerT *mixer, AlsaSndLoopT *loop, json_object *subdevJ) { AlsaLoopSubdevT *subdev = calloc(1, sizeof (AlsaPcmCtlT)); - int error = wrap_json_unpack(subdevJ, "{s?s, si,si,s?o !}" + int error = wrap_json_unpack(subdevJ, "{s?s, si,si !}" , "uid", &subdev->uid , "subdev", &subdev->index , "numid", &subdev->numid @@ -202,4 +202,4 @@ PUBLIC int ApiLoopAttach(SoftMixerT *mixer, AFB_ReqT request, const char *uid, j OnErrorExit: return -1; -}
\ No newline at end of file +} |