mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
gtreamer-player: minor cleanup
Since we're in a callback invoked from within the event loop, we don't need to us upgrade_in_event_loop().
This commit is contained in:
parent
ae25c64ac0
commit
438ebae52e
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ fn main() {
|
|||
let state_result = pipeline.set_state(new_state);
|
||||
match state_result {
|
||||
Ok(_) => {
|
||||
app_weak.upgrade_in_event_loop(move |app| app.set_playing(result)).unwrap();
|
||||
app_weak.unwrap().set_playing(result);
|
||||
}
|
||||
Err(err) => {
|
||||
eprintln!("Failed to set pipeline state to {:?}: {}", new_state, err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue