diff options
author | Christopher Ferris <cferris@google.com> | 2022-08-15 20:02:20 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-08-15 20:02:20 +0000 |
commit | 53414059ef98d4829980eebc059a10e42e386680 (patch) | |
tree | e9ea5c0d94d3e557c9dc9b89445dab7038a2d3cf | |
parent | f690ffd9a988d9a71c7ae80b9260b0bba09e69ae (diff) | |
parent | 65c97079d288fbaa857f211460fc04111fd785ed (diff) | |
download | tinycompress-53414059ef98d4829980eebc059a10e42e386680.tar.gz |
Merge "compress: fix return value of is_codec_supported"
-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); |