diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:18:11 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:18:11 +0000 |
commit | eb3e3dc330eee05002f0622516e0e28abc5f8bc9 (patch) | |
tree | e9ea5c0d94d3e557c9dc9b89445dab7038a2d3cf | |
parent | dacabf034e5d7b3ae825bd1f3ad83f85b35bd7ad (diff) | |
parent | 80b3183143d24021b29f7afd147b55625f39a2ef (diff) | |
download | tinycompress-android14-mainline-uwb-release.tar.gz |
Snap for 10453563 from 80b3183143d24021b29f7afd147b55625f39a2ef to mainline-uwb-releaseaml_uwb_341513070aml_uwb_341511050aml_uwb_341310300aml_uwb_341310030aml_uwb_341111010aml_uwb_341011000android14-mainline-uwb-release
Change-Id: Ifdcf39e549247b4638c2ab9be5162236b2cc6959
-rw-r--r-- | compress.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -574,9 +574,11 @@ bool is_codec_supported(unsigned int card, unsigned int device, ops = &compr_hw_ops; fd = ops->open(card, device, flags, &data, NULL); - if (fd < 0) - return oops(&bad_compress, errno, "cannot open card %u, device %u", + if (fd < 0) { + oops(&bad_compress, errno, "cannot open card %u, device %u", card, device); + return false; + } ret = _is_codec_type_supported(ops, data, codec); |