Commit 483b4067 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Flush stdout after writing every * in basic-tutorial-8

parent 82681d2b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment