mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
rtp: Add gst::Object as parent class to the various types
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1396>
This commit is contained in:
parent
d575cd1f95
commit
1649e268c5
4 changed files with 4 additions and 3 deletions
|
@ -32,6 +32,7 @@ manual = [
|
|||
"Gst.Caps",
|
||||
"Gst.Element",
|
||||
"Gst.ElementFactory",
|
||||
"Gst.Object",
|
||||
]
|
||||
|
||||
[[object]]
|
||||
|
|
|
@ -15,7 +15,7 @@ use std::boxed::Box as Box_;
|
|||
|
||||
glib::wrapper! {
|
||||
#[doc(alias = "GstRTPBaseDepayload")]
|
||||
pub struct RTPBaseDepayload(Object<ffi::GstRTPBaseDepayload, ffi::GstRTPBaseDepayloadClass>) @extends gst::Element;
|
||||
pub struct RTPBaseDepayload(Object<ffi::GstRTPBaseDepayload, ffi::GstRTPBaseDepayloadClass>) @extends gst::Element, gst::Object;
|
||||
|
||||
match fn {
|
||||
type_ => || ffi::gst_rtp_base_depayload_get_type(),
|
||||
|
|
|
@ -15,7 +15,7 @@ use std::boxed::Box as Box_;
|
|||
|
||||
glib::wrapper! {
|
||||
#[doc(alias = "GstRTPBasePayload")]
|
||||
pub struct RTPBasePayload(Object<ffi::GstRTPBasePayload, ffi::GstRTPBasePayloadClass>) @extends gst::Element;
|
||||
pub struct RTPBasePayload(Object<ffi::GstRTPBasePayload, ffi::GstRTPBasePayloadClass>) @extends gst::Element, gst::Object;
|
||||
|
||||
match fn {
|
||||
type_ => || ffi::gst_rtp_base_payload_get_type(),
|
||||
|
|
|
@ -8,7 +8,7 @@ use glib::{prelude::*, translate::*};
|
|||
|
||||
glib::wrapper! {
|
||||
#[doc(alias = "GstRTPHeaderExtension")]
|
||||
pub struct RTPHeaderExtension(Object<ffi::GstRTPHeaderExtension, ffi::GstRTPHeaderExtensionClass>) @extends gst::Element;
|
||||
pub struct RTPHeaderExtension(Object<ffi::GstRTPHeaderExtension, ffi::GstRTPHeaderExtensionClass>) @extends gst::Element, gst::Object;
|
||||
|
||||
match fn {
|
||||
type_ => || ffi::gst_rtp_header_extension_get_type(),
|
||||
|
|
Loading…
Reference in a new issue