mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 21:11:14 +00:00
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! {
|
cfg_if! {
|
||||||
if #[cfg(windows)] {
|
if #[cfg(windows)] {
|
||||||
use gst_sys;
|
use gst_sys;
|
||||||
use glib_sys;
|
|
||||||
use glib::translate::ToGlibPtr;
|
use glib::translate::ToGlibPtr;
|
||||||
|
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
@ -37,7 +36,7 @@ impl WindowsBusExtManual for Bus {
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut pollfd = mem::MaybeUninit::zeroed();
|
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();
|
let pollfd = pollfd.assume_init();
|
||||||
pollfd.fd as *mut _
|
pollfd.fd as *mut _
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue