aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:01:57 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:01:57 +0000
commit3022b9ad90778b62fb0d30776c6b5f15c72d8c79 (patch)
treee9ea5c0d94d3e557c9dc9b89445dab7038a2d3cf
parent9c8e562840c4583dc5a59f1ce1a32e7426007f78 (diff)
parent80b3183143d24021b29f7afd147b55625f39a2ef (diff)
downloadtinycompress-android14-mainline-extservices-release.tar.gz
Snap for 10453563 from 80b3183143d24021b29f7afd147b55625f39a2ef to mainline-extservices-releaseaml_ext_341620040aml_ext_341518010aml_ext_341414010aml_ext_341317010aml_ext_341131030aml_ext_341027030android14-mainline-extservices-release
Change-Id: Ic3639dca751e12fe8621c6ba17bbe8906b627855
-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);