Implement StaticType on the actual MiniObjects, not the GstRc wrapper

This commit is contained in:
Sebastian Dröge 2017-08-18 16:21:49 +03:00
parent 6c4ee55f27
commit 14adb331ec
5 changed files with 6 additions and 6 deletions

View file

@ -243,7 +243,7 @@ impl CapsRef {
}
}
impl glib::types::StaticType for GstRc<CapsRef> {
impl glib::types::StaticType for CapsRef {
fn static_type() -> glib::types::Type {
unsafe { from_glib(ffi::gst_caps_get_type()) }
}

View file

@ -279,7 +279,7 @@ impl Event {
}
}
impl glib::types::StaticType for GstRc<EventRef> {
impl glib::types::StaticType for EventRef {
fn static_type() -> glib::types::Type {
unsafe { from_glib(ffi::gst_event_get_type()) }
}

View file

@ -305,7 +305,7 @@ impl Message {
}
}
impl glib::types::StaticType for GstRc<MessageRef> {
impl glib::types::StaticType for MessageRef {
fn static_type() -> glib::types::Type {
unsafe { from_glib(ffi::gst_message_get_type()) }
}

View file

@ -176,7 +176,7 @@ impl QueryRef {
}
}
impl glib::types::StaticType for GstRc<QueryRef> {
impl glib::types::StaticType for QueryRef {
fn static_type() -> glib::types::Type {
unsafe { from_glib(ffi::gst_query_get_type()) }
}

View file

@ -93,7 +93,7 @@ impl TocRef {
}
}
impl glib::types::StaticType for GstRc<TocRef> {
impl glib::types::StaticType for TocRef {
fn static_type() -> glib::types::Type {
unsafe { from_glib(ffi::gst_toc_get_type()) }
}
@ -245,7 +245,7 @@ impl TocEntryRef {
}
}
impl glib::types::StaticType for GstRc<TocEntryRef> {
impl glib::types::StaticType for TocEntryRef {
fn static_type() -> glib::types::Type {
unsafe { from_glib(ffi::gst_toc_entry_get_type()) }
}