From 483b40679ad9dafcc6b211ed95be57a8e4512a1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 17 Nov 2017 20:43:13 +0200 Subject: [PATCH] Flush stdout after writing every * in basic-tutorial-8 --- tutorials/src/bin/basic-tutorial-8.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tutorials/src/bin/basic-tutorial-8.rs b/tutorials/src/bin/basic-tutorial-8.rs index 3be8c3253..2e309d594 100644 --- a/tutorials/src/bin/basic-tutorial-8.rs +++ b/tutorials/src/bin/basic-tutorial-8.rs @@ -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