aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:46:40 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:46:40 +0000
commitbe15f4f69a84f6cb00c624caf1367c6a8c6ee874 (patch)
treee9ea5c0d94d3e557c9dc9b89445dab7038a2d3cf
parentdacabf034e5d7b3ae825bd1f3ad83f85b35bd7ad (diff)
parent80b3183143d24021b29f7afd147b55625f39a2ef (diff)
downloadtinycompress-android14-mainline-appsearch-release.tar.gz
Snap for 10453563 from 80b3183143d24021b29f7afd147b55625f39a2ef to mainline-appsearch-releaseaml_ase_341510000aml_ase_341410000aml_ase_341310010aml_ase_341113000aml_ase_340913000android14-mainline-appsearch-release
Change-Id: I0177c7294548a4fb2777415e2f4832a14caf92f9
-rw-r--r--compress.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/compress.c b/compress.c
index 7422c4b..ac2c73f 100644
--- a/compress.c
+++ b/compress.c
@@ -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);