mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +00:00
Add bindings for is_video_overlay_prepare_window_handle_message()
This commit is contained in:
parent
6cf34b1b39
commit
0628961c94
2 changed files with 12 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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(),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue