diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-09-22 10:21:00 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-09-22 10:21:00 +0000 |
commit | af85fef8ac760c7d26815c10e86b2daa4340da5e (patch) | |
tree | 5c1978fd40f1c1881ec156c3050c996fb8499297 | |
parent | f6700a93634f3c219a40b1298d12cbbf5ebf1160 (diff) | |
parent | 4565b3567c78b68e39c79fd1239eac123c1ce35d (diff) |
Snap for 9092308 from 4565b3567c78b68e39c79fd1239eac123c1ce35d to u-keystone-qcom-release
Change-Id: Ib81142787d1db45480332cb8fe0c463334075a77
-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); |