mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 10:30:40 +00:00
Update for glib API changes
This commit is contained in:
parent
33696a8aed
commit
560bdc4cb7
5 changed files with 6 additions and 6 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue