diff options
author | Seungha Yang <seungha@centricular.com> | 2020-10-21 19:47:52 +0300 |
---|---|---|
committer | Seungha Yang <seungha@centricular.com> | 2020-10-21 20:25:52 +0300 |
commit | 1b546bb56266ff23539d852c90a6aa75fc218630 (patch) | |
tree | 2ecd0ed76907eb590de1b83917f41c22ea7bb452 /utils | |
parent | 46af97219c2e708a0bf79d35a99374ff3431c3bf (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.rs | 5 |
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; |