Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-05-08 13:55:21 +0300
committerSebastian Dröge <sebastian@centricular.com>2020-05-08 13:56:50 +0300
commitd4e9a56e549359e01b3fcf690428d097cb944650 (patch)
tree35602142a835cbbf163661793f6c496cd4e566b8 /utils
parentb180517b29bde16970b976f75a23da31b18d057b (diff)
fallbackswitch/fallbacksrc: Ignore errors when shutting down the source
Diffstat (limited to 'utils')
-rw-r--r--utils/fallbackswitch/src/fallbacksrc.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/fallbackswitch/src/fallbacksrc.rs b/utils/fallbackswitch/src/fallbacksrc.rs
index ade237c73..44ef4bb1a 100644
--- a/utils/fallbackswitch/src/fallbacksrc.rs
+++ b/utils/fallbackswitch/src/fallbacksrc.rs
@@ -909,7 +909,7 @@ impl FallbackSrc {
gst_error!(CAT, obj: element, "Source failed to change state");
// Try again later if we're not shutting down
if transition != gst::StateChange::ReadyToNull {
- source.set_state(gst::State::Null).unwrap();
+ let _ = source.set_state(gst::State::Null);
let mut state_guard = self.state.lock().unwrap();
let state = state_guard.as_mut().expect("no state");
self.handle_source_error(element, state);
@@ -1550,7 +1550,7 @@ impl FallbackSrc {
};
gst_debug!(CAT, obj: element, "Shutting down source");
- source.set_state(gst::State::Null).unwrap();
+ let _ = source.set_state(gst::State::Null);
// Sleep for 1s before retrying
@@ -1631,7 +1631,7 @@ impl FallbackSrc {
if source.sync_state_with_parent().is_err() {
gst_error!(CAT, obj: element, "Source failed to change state");
- source.set_state(gst::State::Null).unwrap();
+ let _ = source.set_state(gst::State::Null);
let mut state_guard = src.state.lock().unwrap();
let state = state_guard.as_mut().expect("no state");
src.handle_source_error(element, state);