mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 02:26:35 +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();
|
||||
|
||||
// Src
|
||||
let src_element = glib::Object::new_default::<ElementSrcTest>();
|
||||
let src_element = glib::Object::new::<ElementSrcTest>();
|
||||
src_element.set_property("context", &context_name);
|
||||
pipeline.add(&src_element).unwrap();
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ glib::wrapper! {
|
|||
|
||||
impl RTPAv1Depay {
|
||||
pub fn new() -> Self {
|
||||
glib::Object::new_default()
|
||||
glib::Object::new()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ glib::wrapper! {
|
|||
|
||||
impl RTPAv1Pay {
|
||||
pub fn new() -> Self {
|
||||
glib::Object::new_default()
|
||||
glib::Object::new()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -59,6 +59,6 @@ impl Signallable for Signaller {
|
|||
|
||||
impl Default for Signaller {
|
||||
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 {
|
||||
fn default() -> Self {
|
||||
glib::Object::new_default()
|
||||
glib::Object::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl WebRTCSink {
|
||||
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();
|
||||
ws.set_signaller(signaller).unwrap();
|
||||
|
|
Loading…
Reference in a new issue