diff options
author | Matthew Gregan <[email protected]> | 2016-11-03 13:51:45 +1300 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2016-11-09 11:03:13 +0100 |
commit | 5abde564516a8557266159bfe25d9e046ea9d318 (patch) | |
tree | 16167d46ad5b6e3e48a10b541f763ff631ddf107 /src/cubeb_jack.cpp | |
parent | 7ac08e01b01a665d73496ef0679be49716cf10cf (diff) | |
download | cubeb-5abde564516a8557266159bfe25d9e046ea9d318.tar.gz cubeb-5abde564516a8557266159bfe25d9e046ea9d318.zip |
Avoid using cubeb_devid internally.
cubeb_devid is intended to be an opaque type for API users. Internally,
a cubeb_devid should be converted to the original type at the earliest
possible point.
Diffstat (limited to 'src/cubeb_jack.cpp')
-rw-r--r-- | src/cubeb_jack.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cubeb_jack.cpp b/src/cubeb_jack.cpp index 8f995da..5313b39 100644 --- a/src/cubeb_jack.cpp +++ b/src/cubeb_jack.cpp @@ -993,9 +993,9 @@ cbjack_enumerate_devices(cubeb * context, cubeb_device_type type, const char * j_out = "JACK playback"; if (type & CUBEB_DEVICE_TYPE_OUTPUT) { - context->devinfo[i] = (cubeb_device_info *)malloc(sizeof(cubeb_device_info)); + context->devinfo[i] = (cubeb_device_info *) malloc(sizeof(cubeb_device_info)); context->devinfo[i]->device_id = strdup(j_out); - context->devinfo[i]->devid = context->devinfo[i]->device_id; + context->devinfo[i]->devid = (cubeb_devid) context->devinfo[i]->device_id; context->devinfo[i]->friendly_name = strdup(j_out); context->devinfo[i]->group_id = strdup(j_out); context->devinfo[i]->vendor_name = strdup(j_out); @@ -1014,9 +1014,9 @@ cbjack_enumerate_devices(cubeb * context, cubeb_device_type type, } if (type & CUBEB_DEVICE_TYPE_INPUT) { - context->devinfo[i] = (cubeb_device_info *)malloc(sizeof(cubeb_device_info)); + context->devinfo[i] = (cubeb_device_info *) malloc(sizeof(cubeb_device_info)); context->devinfo[i]->device_id = strdup(j_in); - context->devinfo[i]->devid = context->devinfo[i]->device_id; + context->devinfo[i]->devid = (cubeb_devid) context->devinfo[i]->device_id; context->devinfo[i]->friendly_name = strdup(j_in); context->devinfo[i]->group_id = strdup(j_in); context->devinfo[i]->vendor_name = strdup(j_in); |