Merge pull request #95 from shssoichiro/fix-get-best-stream

Fix get best stream
This commit is contained in:
Polochon-street
2022-03-06 16:29:44 +01:00
committed by GitHub

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