diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:08:23 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:08:23 +0000 |
commit | a91c3259adbb960f1e0b5510bcf8f1c2474473b7 (patch) | |
tree | e9ea5c0d94d3e557c9dc9b89445dab7038a2d3cf | |
parent | 8a9411f12a583b6f54c81be1b6986099259a52cc (diff) | |
parent | 80b3183143d24021b29f7afd147b55625f39a2ef (diff) | |
download | tinycompress-android14-mainline-os-statsd-release.tar.gz |
Snap for 10453563 from 80b3183143d24021b29f7afd147b55625f39a2ef to mainline-os-statsd-releaseaml_sta_341615000aml_sta_341511040aml_sta_341410000aml_sta_341311010aml_sta_341114000aml_sta_341111000aml_sta_341010020aml_sta_340912000aml_sta_340911000aml_net_341111030android14-mainline-os-statsd-release
Change-Id: I5def4992f52b90eac69437c4ccfc5a651c125a7b
-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); |