forked from mirrors/gstreamer-rs
Flush stdout after writing every * in basic-tutorial-8
This commit is contained in:
parent
82681d2b24
commit
483b40679a
1 changed files with 2 additions and 0 deletions
|
@ -225,8 +225,10 @@ fn main() {
|
|||
};
|
||||
|
||||
if let Some(_sample) = appsink.pull_sample() {
|
||||
use std::io::{self, Write};
|
||||
// The only thing we do in this example is print a * to indicate a received buffer
|
||||
print!("*");
|
||||
let _ = io::stdout().flush();
|
||||
}
|
||||
|
||||
gst::FlowReturn::Ok
|
||||
|
|
Loading…
Reference in a new issue