Merge "compress: fix return value of is_codec_supported"
This commit is contained in:
commit
53414059ef
1 changed files with 4 additions and 2 deletions
|
@ -574,9 +574,11 @@ bool is_codec_supported(unsigned int card, unsigned int device,
|
||||||
ops = &compr_hw_ops;
|
ops = &compr_hw_ops;
|
||||||
|
|
||||||
fd = ops->open(card, device, flags, &data, NULL);
|
fd = ops->open(card, device, flags, &data, NULL);
|
||||||
if (fd < 0)
|
if (fd < 0) {
|
||||||
return oops(&bad_compress, errno, "cannot open card %u, device %u",
|
oops(&bad_compress, errno, "cannot open card %u, device %u",
|
||||||
card, device);
|
card, device);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
ret = _is_codec_type_supported(ops, data, codec);
|
ret = _is_codec_type_supported(ops, data, codec);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue