From 14adb331ecfb3d84782337e8d5f881239a5d4ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 18 Aug 2017 16:21:49 +0300 Subject: [PATCH] Implement StaticType on the actual MiniObjects, not the GstRc wrapper --- gstreamer/src/caps.rs | 2 +- gstreamer/src/event.rs | 2 +- gstreamer/src/message.rs | 2 +- gstreamer/src/query.rs | 2 +- gstreamer/src/toc.rs | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gstreamer/src/caps.rs b/gstreamer/src/caps.rs index 4dfa8a839..3cbe26752 100644 --- a/gstreamer/src/caps.rs +++ b/gstreamer/src/caps.rs @@ -243,7 +243,7 @@ impl CapsRef { } } -impl glib::types::StaticType for GstRc { +impl glib::types::StaticType for CapsRef { fn static_type() -> glib::types::Type { unsafe { from_glib(ffi::gst_caps_get_type()) } } diff --git a/gstreamer/src/event.rs b/gstreamer/src/event.rs index 143831063..c949f54c6 100644 --- a/gstreamer/src/event.rs +++ b/gstreamer/src/event.rs @@ -279,7 +279,7 @@ impl Event { } } -impl glib::types::StaticType for GstRc { +impl glib::types::StaticType for EventRef { fn static_type() -> glib::types::Type { unsafe { from_glib(ffi::gst_event_get_type()) } } diff --git a/gstreamer/src/message.rs b/gstreamer/src/message.rs index 36c9da1c2..407e2b364 100644 --- a/gstreamer/src/message.rs +++ b/gstreamer/src/message.rs @@ -305,7 +305,7 @@ impl Message { } } -impl glib::types::StaticType for GstRc { +impl glib::types::StaticType for MessageRef { fn static_type() -> glib::types::Type { unsafe { from_glib(ffi::gst_message_get_type()) } } diff --git a/gstreamer/src/query.rs b/gstreamer/src/query.rs index 2be1a7003..2212475a6 100644 --- a/gstreamer/src/query.rs +++ b/gstreamer/src/query.rs @@ -176,7 +176,7 @@ impl QueryRef { } } -impl glib::types::StaticType for GstRc { +impl glib::types::StaticType for QueryRef { fn static_type() -> glib::types::Type { unsafe { from_glib(ffi::gst_query_get_type()) } } diff --git a/gstreamer/src/toc.rs b/gstreamer/src/toc.rs index ba0628241..482935acf 100644 --- a/gstreamer/src/toc.rs +++ b/gstreamer/src/toc.rs @@ -93,7 +93,7 @@ impl TocRef { } } -impl glib::types::StaticType for GstRc { +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 { +impl glib::types::StaticType for TocEntryRef { fn static_type() -> glib::types::Type { unsafe { from_glib(ffi::gst_toc_entry_get_type()) } }