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

This commit is contained in:
Sebastian Dröge 2017-11-17 20:43:13 +02:00
parent 82681d2b24
commit 483b40679a

View file

@ -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