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:
authorSeungha Yang <seungha@centricular.com>2020-10-21 19:47:52 +0300
committerSeungha Yang <seungha@centricular.com>2020-10-21 20:25:52 +0300
commit1b546bb56266ff23539d852c90a6aa75fc218630 (patch)
tree2ecd0ed76907eb590de1b83917f41c22ea7bb452 /utils
parent46af97219c2e708a0bf79d35a99374ff3431c3bf (diff)
fallbacksrc: Ignore buffering message of restart was scheduled
In case that there is pending restart, fallbacksrc should not try to add pad probe.
Diffstat (limited to 'utils')
-rw-r--r--utils/fallbackswitch/src/fallbacksrc.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/fallbackswitch/src/fallbacksrc.rs b/utils/fallbackswitch/src/fallbacksrc.rs
index fcf00bf95..bde5bf93f 100644
--- a/utils/fallbackswitch/src/fallbacksrc.rs
+++ b/utils/fallbackswitch/src/fallbacksrc.rs
@@ -1802,6 +1802,11 @@ impl FallbackSrc {
Some(state) => state,
};
+ if state.source_pending_restart {
+ gst_debug!(CAT, obj: element, "Has pending restart");
+ return;
+ }
+
gst_debug!(CAT, obj: element, "Got buffering {}%", m.get_percent());
state.buffering_percent = m.get_percent() as u8;