forked from mirrors/gstreamer-rs
Fix Windows build
This commit is contained in:
parent
7868018abb
commit
de7a9dee1e
1 changed files with 1 additions and 2 deletions
|
@ -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 _
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue