Fix get best stream

This commit is contained in:
Josh Holmer
2022-02-20 18:15:08 -05:00
parent 73d2445eb8
commit a0d7fdb30f

View File

@ -176,7 +176,7 @@ impl<'a> Best<'a> {
0,
);
if index >= 0 && !decoder.is_null() {
if index >= 0 {
Some(Stream::wrap(self.context, index as usize))
} else {
None