passing `cargo check`
parent
086b2942fa
commit
57c53a31dd
|
@ -265,7 +265,17 @@ impl FfmpegDemuxer {
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
use crate::net_reader::NetReader;
|
||||||
|
|
Loading…
Reference in New Issue