video-player: Flush message bus on dispose
Otherwise we might leak the GstPlay
This commit is contained in:
parent
b87b9dc12b
commit
4e498903df
1 changed files with 4 additions and 0 deletions
|
@ -105,6 +105,10 @@ mod imp {
|
|||
.unwrap();
|
||||
self.bus_guard.set(bus_guard).unwrap();
|
||||
}
|
||||
|
||||
fn dispose(&self) {
|
||||
self.player.message_bus().set_flushing(true);
|
||||
}
|
||||
}
|
||||
|
||||
impl WidgetImpl for VideoPlayer {}
|
||||
|
|
Loading…
Reference in a new issue