diff options
-rw-r--r-- | generic/threadshare/src/jitterbuffer/imp.rs | 6 | ||||
-rw-r--r-- | generic/threadshare/tests/pad.rs | 5 | ||||
-rw-r--r-- | net/rtpav1/src/depay/mod.rs | 2 | ||||
-rw-r--r-- | net/rtpav1/src/pay/mod.rs | 2 | ||||
-rw-r--r-- | utils/fallbackswitch/src/fallbacksrc/custom_source/mod.rs | 2 | ||||
-rw-r--r-- | video/gtk4/src/sink/mod.rs | 2 | ||||
-rw-r--r-- | video/gtk4/src/sink/paintable/mod.rs | 2 |
7 files changed, 8 insertions, 13 deletions
diff --git a/generic/threadshare/src/jitterbuffer/imp.rs b/generic/threadshare/src/jitterbuffer/imp.rs index b8bc8b7a1..516c71c4f 100644 --- a/generic/threadshare/src/jitterbuffer/imp.rs +++ b/generic/threadshare/src/jitterbuffer/imp.rs @@ -382,11 +382,7 @@ impl SinkHandler { if state.clock_rate.is_none() { drop(state); let caps = element - .try_emit_by_name::<Option<gst::Caps>>("request-pt-map", &[&(pt as u32)]) - .map_err(|err| { - gst::error!(CAT, obj: pad, "Emitting 'request-pt-map': {}", err); - gst::FlowError::Error - })? + .emit_by_name::<Option<gst::Caps>>("request-pt-map", &[&(pt as u32)]) .ok_or_else(|| { gst::error!(CAT, obj: pad, "Signal 'request-pt-map' retuned None"); gst::FlowError::Error diff --git a/generic/threadshare/tests/pad.rs b/generic/threadshare/tests/pad.rs index 424df29ba..84b3d4642 100644 --- a/generic/threadshare/tests/pad.rs +++ b/generic/threadshare/tests/pad.rs @@ -747,7 +747,7 @@ fn setup( let pipeline = gst::Pipeline::new(None); // Src - let src_element = glib::Object::new::<ElementSrcTest>(&[]).unwrap(); + let src_element = glib::Object::new::<ElementSrcTest>(&[]); src_element.set_property("context", &context_name); pipeline.add(&src_element).unwrap(); @@ -767,8 +767,7 @@ fn setup( // Sink let (sender, receiver) = mpsc::channel::<Item>(10); - let sink_element = - glib::Object::new::<ElementSinkTest>(&[("sender", &ItemSender { sender })]).unwrap(); + let sink_element = glib::Object::new::<ElementSinkTest>(&[("sender", &ItemSender { sender })]); pipeline.add(&sink_element).unwrap(); last_element.link(&sink_element).unwrap(); diff --git a/net/rtpav1/src/depay/mod.rs b/net/rtpav1/src/depay/mod.rs index 5a9b7d3ee..3f7cd5af8 100644 --- a/net/rtpav1/src/depay/mod.rs +++ b/net/rtpav1/src/depay/mod.rs @@ -20,7 +20,7 @@ glib::wrapper! { impl RTPAv1Depay { pub fn new() -> Self { - glib::Object::new(&[]).expect("Failed to create AV1 depayloader") + glib::Object::new(&[]) } } diff --git a/net/rtpav1/src/pay/mod.rs b/net/rtpav1/src/pay/mod.rs index 342ef65c3..151039535 100644 --- a/net/rtpav1/src/pay/mod.rs +++ b/net/rtpav1/src/pay/mod.rs @@ -20,7 +20,7 @@ glib::wrapper! { impl RTPAv1Pay { pub fn new() -> Self { - glib::Object::new(&[]).expect("Failed to create AV1 payloader") + glib::Object::new(&[]) } } diff --git a/utils/fallbackswitch/src/fallbacksrc/custom_source/mod.rs b/utils/fallbackswitch/src/fallbacksrc/custom_source/mod.rs index 439b6df72..2af20923e 100644 --- a/utils/fallbackswitch/src/fallbacksrc/custom_source/mod.rs +++ b/utils/fallbackswitch/src/fallbacksrc/custom_source/mod.rs @@ -16,6 +16,6 @@ glib::wrapper! { impl CustomSource { pub fn new(source: &gst::Element) -> CustomSource { - glib::Object::new(&[("source", source)]).unwrap() + glib::Object::new(&[("source", source)]) } } diff --git a/video/gtk4/src/sink/mod.rs b/video/gtk4/src/sink/mod.rs index 0a35baa4a..657c05283 100644 --- a/video/gtk4/src/sink/mod.rs +++ b/video/gtk4/src/sink/mod.rs @@ -35,7 +35,7 @@ glib::wrapper! { impl PaintableSink { pub fn new(name: Option<&str>) -> Self { - glib::Object::new(&[("name", &name)]).expect("Failed to create a GTK4Sink") + glib::Object::new(&[("name", &name)]) } fn pending_frame(&self) -> Option<Frame> { diff --git a/video/gtk4/src/sink/paintable/mod.rs b/video/gtk4/src/sink/paintable/mod.rs index 03b94883d..da66360ff 100644 --- a/video/gtk4/src/sink/paintable/mod.rs +++ b/video/gtk4/src/sink/paintable/mod.rs @@ -23,7 +23,7 @@ glib::wrapper! { impl SinkPaintable { pub fn new() -> Self { - glib::Object::new(&[]).expect("Failed to create a SinkPaintable") + glib::Object::new(&[]) } } |