Fix Windows build

This commit is contained in:
Fernando Jimenez Moreno 2019-09-13 07:01:15 +02:00
parent 7868018abb
commit de7a9dee1e

View file

@ -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 _
}