mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
Minor simplification in gtksink example
This commit is contained in:
parent
8accac8d75
commit
5cd94a279e
1 changed files with 2 additions and 3 deletions
|
@ -56,8 +56,8 @@ fn create_ui(app: >k::Application) {
|
|||
let mut minutes = seconds / 60;
|
||||
let hours = minutes / 60;
|
||||
|
||||
seconds -= hours * 60 * 60 + minutes * 60;
|
||||
minutes -= hours * 60;
|
||||
seconds %= 60;
|
||||
minutes %= 60;
|
||||
|
||||
label.set_text(&format!(
|
||||
"Position: {:02}:{:02}:{:02}",
|
||||
|
@ -123,4 +123,3 @@ fn main() {
|
|||
let args_ref = args.iter().map(|a| a.as_str()).collect::<Vec<_>>();
|
||||
app.run(&args_ref);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue