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:
Marijn Suijten 2021-06-02 14:42:30 +02:00
parent 212d4ef008
commit a208919c88

View file

@ -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,