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
commit 984919a57b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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