video-player: Flush message bus on dispose

Otherwise we might leak the GstPlay
This commit is contained in:
Kévin Commaille 2023-11-09 14:45:25 +01:00
parent b87b9dc12b
commit 4e498903df
No known key found for this signature in database
GPG key ID: 29A48C1F03620416

View file

@ -105,6 +105,10 @@ mod imp {
.unwrap(); .unwrap();
self.bus_guard.set(bus_guard).unwrap(); self.bus_guard.set(bus_guard).unwrap();
} }
fn dispose(&self) {
self.player.message_bus().set_flushing(true);
}
} }
impl WidgetImpl for VideoPlayer {} impl WidgetImpl for VideoPlayer {}