summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Sanders <eriksanders@google.com>2022-09-21 04:23:45 +0000
committerErik Sanders <eriksanders@google.com>2022-09-21 04:27:52 +0000
commit4565b3567c78b68e39c79fd1239eac123c1ce35d (patch)
tree5c1978fd40f1c1881ec156c3050c996fb8499297
parentf6700a93634f3c219a40b1298d12cbbf5ebf1160 (diff)
parent44b7520a5328fd5ae1a3eddc8d1c7e749b553d46 (diff)
Merge UP1A.220827.001
Change-Id: Ia8b6f3aa8a4f292d85fd99e422f4e8b587f90555
-rw-r--r--compress.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/compress.c b/compress.c
index 187bbe9..3019cb3 100644
--- a/compress.c
+++ b/compress.c
@@ -577,9 +577,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);