diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 01:05:50 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 01:05:50 +0000 |
commit | 884f11774000ceb73432566e3f74f0682a51e0f8 (patch) | |
tree | e9ea5c0d94d3e557c9dc9b89445dab7038a2d3cf | |
parent | 78cbb0b7d02e7ec8310a466a3c5e061df9fbcdae (diff) | |
parent | 80b3183143d24021b29f7afd147b55625f39a2ef (diff) | |
download | tinycompress-android14-mainline-resolv-release.tar.gz |
Snap for 10447354 from 80b3183143d24021b29f7afd147b55625f39a2ef to mainline-resolv-releaseaml_res_341510000aml_res_341410010aml_res_341311030aml_res_341110000aml_res_340912000android14-mainline-resolv-release
Change-Id: I1bff2db073e9347371d73695e03d466e05d07201
-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); |