From de7a9dee1ebbd5f699f7cb8830a99add19ddc1b3 Mon Sep 17 00:00:00 2001 From: Fernando Jimenez Moreno Date: Fri, 13 Sep 2019 07:01:15 +0200 Subject: [PATCH] Fix Windows build --- gstreamer/src/bus_windows.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gstreamer/src/bus_windows.rs b/gstreamer/src/bus_windows.rs index 042c53ad1..ca2d5db9f 100644 --- a/gstreamer/src/bus_windows.rs +++ b/gstreamer/src/bus_windows.rs @@ -10,7 +10,6 @@ cfg_if! { if #[cfg(windows)] { use gst_sys; - use glib_sys; use glib::translate::ToGlibPtr; use std::mem; @@ -37,7 +36,7 @@ impl WindowsBusExtManual for Bus { #[cfg(windows)] unsafe { let mut pollfd = mem::MaybeUninit::zeroed(); - gst_sys::gst_bus_get_pollfd(self.to_glib_none().0, pollfd.assume_init()); + gst_sys::gst_bus_get_pollfd(self.to_glib_none().0, pollfd.as_mut_ptr()); let pollfd = pollfd.assume_init(); pollfd.fd as *mut _ }