mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-27 04:20:28 +00:00
webrtc: Use #[repr(C)]
to get a C-compatible layout for the Signaller
struct
This is required by GObject for class/interface and instance structs and the reason why implementing the `glib::ObjectInterface` trait is unsafe. Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/397 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1297>
This commit is contained in:
parent
045b524bc6
commit
5ee46a214c
1 changed files with 1 additions and 0 deletions
|
@ -5,6 +5,7 @@ use gst::prelude::*;
|
|||
use gst::subclass::prelude::*;
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
#[repr(C)]
|
||||
pub struct Signallable {
|
||||
_parent: glib::gobject_ffi::GTypeInterface,
|
||||
pub start: fn(&super::Signallable),
|
||||
|
|
Loading…
Reference in a new issue