From 560bdc4cb7029ce943830090d047b4f1760e3e7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 31 Jan 2023 12:24:07 +0200 Subject: [PATCH] Update for glib API changes --- generic/threadshare/tests/pad.rs | 2 +- net/rtp/src/av1/depay/mod.rs | 2 +- net/rtp/src/av1/pay/mod.rs | 2 +- net/webrtc/src/signaller/mod.rs | 2 +- net/webrtc/src/webrtcsink/mod.rs | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/generic/threadshare/tests/pad.rs b/generic/threadshare/tests/pad.rs index dd17d29e..f6ab0bcc 100644 --- a/generic/threadshare/tests/pad.rs +++ b/generic/threadshare/tests/pad.rs @@ -693,7 +693,7 @@ fn setup( let pipeline = gst::Pipeline::default(); // Src - let src_element = glib::Object::new_default::(); + let src_element = glib::Object::new::(); src_element.set_property("context", &context_name); pipeline.add(&src_element).unwrap(); diff --git a/net/rtp/src/av1/depay/mod.rs b/net/rtp/src/av1/depay/mod.rs index c6411a6c..ba251f18 100644 --- a/net/rtp/src/av1/depay/mod.rs +++ b/net/rtp/src/av1/depay/mod.rs @@ -20,7 +20,7 @@ glib::wrapper! { impl RTPAv1Depay { pub fn new() -> Self { - glib::Object::new_default() + glib::Object::new() } } diff --git a/net/rtp/src/av1/pay/mod.rs b/net/rtp/src/av1/pay/mod.rs index b7d6b38d..f046b0cb 100644 --- a/net/rtp/src/av1/pay/mod.rs +++ b/net/rtp/src/av1/pay/mod.rs @@ -20,7 +20,7 @@ glib::wrapper! { impl RTPAv1Pay { pub fn new() -> Self { - glib::Object::new_default() + glib::Object::new() } } diff --git a/net/webrtc/src/signaller/mod.rs b/net/webrtc/src/signaller/mod.rs index ba05a242..5aac4fae 100644 --- a/net/webrtc/src/signaller/mod.rs +++ b/net/webrtc/src/signaller/mod.rs @@ -59,6 +59,6 @@ impl Signallable for Signaller { impl Default for Signaller { fn default() -> Self { - glib::Object::new_default() + glib::Object::new() } } diff --git a/net/webrtc/src/webrtcsink/mod.rs b/net/webrtc/src/webrtcsink/mod.rs index 686fa2c4..9df6f0f3 100644 --- a/net/webrtc/src/webrtcsink/mod.rs +++ b/net/webrtc/src/webrtcsink/mod.rs @@ -83,13 +83,13 @@ impl + Signallable> SignallableObject for T {} impl Default for WebRTCSink { fn default() -> Self { - glib::Object::new_default() + glib::Object::new() } } impl WebRTCSink { pub fn with_signaller(signaller: Box) -> Self { - let ret = glib::Object::new_default::(); + let ret = glib::Object::new::(); let ws = ret.imp(); ws.set_signaller(signaller).unwrap();