diff options
author | Erik Sanders <eriksanders@google.com> | 2022-09-21 04:23:45 +0000 |
---|---|---|
committer | Erik Sanders <eriksanders@google.com> | 2022-09-21 04:27:52 +0000 |
commit | 4565b3567c78b68e39c79fd1239eac123c1ce35d (patch) | |
tree | 5c1978fd40f1c1881ec156c3050c996fb8499297 | |
parent | f6700a93634f3c219a40b1298d12cbbf5ebf1160 (diff) | |
parent | 44b7520a5328fd5ae1a3eddc8d1c7e749b553d46 (diff) |
Merge UP1A.220827.001
Change-Id: Ia8b6f3aa8a4f292d85fd99e422f4e8b587f90555
-rw-r--r-- | compress.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |