diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2022-11-11 19:34:21 -0800 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2022-11-11 19:34:21 -0800 |
commit | fe5f849f890561bf70f6e7a009cb55528646065b (patch) | |
tree | 5c1978fd40f1c1881ec156c3050c996fb8499297 | |
parent | f6700a93634f3c219a40b1298d12cbbf5ebf1160 (diff) | |
parent | af85fef8ac760c7d26815c10e86b2daa4340da5e (diff) |
Merge af85fef8ac760c7d26815c10e86b2daa4340da5e on remote branch
Change-Id: I8346ae66be3757d404f06722750990e82537e239
-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); |