Add bindings for is_video_overlay_prepare_window_handle_message()

This commit is contained in:
Sebastian Dröge 2018-09-13 22:56:47 +03:00
parent 6cf34b1b39
commit 0628961c94
2 changed files with 12 additions and 1 deletions

View file

@ -50,7 +50,7 @@ pub use video_info::*;
pub mod video_frame;
pub use video_frame::{VideoFrame, VideoFrameRef};
mod video_overlay;
pub use video_overlay::VideoOverlayExtManual;
pub use video_overlay::*;
mod video_event;
pub use video_event::*;
mod functions;

View file

@ -7,6 +7,9 @@
// except according to those terms.
use ffi;
use glib::translate::*;
use gst;
use gst::prelude::*;
use libc::uintptr_t;
use VideoOverlay;
@ -26,3 +29,11 @@ impl<O: IsA<VideoOverlay>> VideoOverlayExtManual for O {
ffi::gst_video_overlay_got_window_handle(self.to_glib_none().0, handle)
}
}
pub fn is_video_overlay_prepare_window_handle_message(msg: &gst::MessageRef) -> bool {
unsafe {
from_glib(ffi::gst_is_video_overlay_prepare_window_handle_message(
msg.as_mut_ptr(),
))
}
}