mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 08:36:31 +00:00
video/video_rectangle: Mark struct as repr(C) for FFI transparency
This struct is "reimplemented" to make it easier to access the fields instead of going through `ffi::GstVideoRectangle`, but should be marked `repr(C)` to remain binary-compatible.
This commit is contained in:
parent
212d4ef008
commit
a208919c88
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
use glib::translate::IntoGlib;
|
||||
use std::mem;
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
|
||||
pub struct VideoRectangle {
|
||||
pub x: i32,
|
||||
|
|
Loading…
Reference in a new issue