passing `cargo check`

main
_ 2021-11-14 18:03:37 +00:00
parent 086b2942fa
commit 57c53a31dd
1 changed files with 11 additions and 1 deletions

View File

@ -265,7 +265,17 @@ impl FfmpegDemuxer {
}
impl FfmpegDemuxer {
fn pump (&mut self) -> Result <
fn pump (&mut self) -> Result <bool> {
while let Some ((stream, packet)) = self.input_ctx.packets ().next () {
if stream.index () == self.best_stream_idx {
// tracing::trace! ("demuxed packet");
self.decoder.send_packet (&packet)?;
return Ok (true);
}
}
Ok (false)
}
}
use crate::net_reader::NetReader;