Update for glib API changes

This commit is contained in:
Sebastian Dröge 2023-01-31 12:24:07 +02:00
parent 33696a8aed
commit 560bdc4cb7
5 changed files with 6 additions and 6 deletions

View file

@ -693,7 +693,7 @@ fn setup(
let pipeline = gst::Pipeline::default(); let pipeline = gst::Pipeline::default();
// Src // Src
let src_element = glib::Object::new_default::<ElementSrcTest>(); let src_element = glib::Object::new::<ElementSrcTest>();
src_element.set_property("context", &context_name); src_element.set_property("context", &context_name);
pipeline.add(&src_element).unwrap(); pipeline.add(&src_element).unwrap();

View file

@ -20,7 +20,7 @@ glib::wrapper! {
impl RTPAv1Depay { impl RTPAv1Depay {
pub fn new() -> Self { pub fn new() -> Self {
glib::Object::new_default() glib::Object::new()
} }
} }

View file

@ -20,7 +20,7 @@ glib::wrapper! {
impl RTPAv1Pay { impl RTPAv1Pay {
pub fn new() -> Self { pub fn new() -> Self {
glib::Object::new_default() glib::Object::new()
} }
} }

View file

@ -59,6 +59,6 @@ impl Signallable for Signaller {
impl Default for Signaller { impl Default for Signaller {
fn default() -> Self { fn default() -> Self {
glib::Object::new_default() glib::Object::new()
} }
} }

View file

@ -83,13 +83,13 @@ impl<T: AsRef<glib::Object> + Signallable> SignallableObject for T {}
impl Default for WebRTCSink { impl Default for WebRTCSink {
fn default() -> Self { fn default() -> Self {
glib::Object::new_default() glib::Object::new()
} }
} }
impl WebRTCSink { impl WebRTCSink {
pub fn with_signaller(signaller: Box<dyn SignallableObject>) -> Self { pub fn with_signaller(signaller: Box<dyn SignallableObject>) -> Self {
let ret = glib::Object::new_default::<WebRTCSink>(); let ret = glib::Object::new::<WebRTCSink>();
let ws = ret.imp(); let ws = ret.imp();
ws.set_signaller(signaller).unwrap(); ws.set_signaller(signaller).unwrap();