mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 17:41:05 +00:00
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() {
|
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
|
// The only thing we do in this example is print a * to indicate a received buffer
|
||||||
print!("*");
|
print!("*");
|
||||||
|
let _ = io::stdout().flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
gst::FlowReturn::Ok
|
gst::FlowReturn::Ok
|
||||||
|
|
Loading…
Reference in a new issue