fallbacksrc: Ignore buffering message of restart was scheduled

In case that there is pending restart, fallbacksrc should not
try to add pad probe.
This commit is contained in:
Seungha Yang 2020-10-22 01:47:52 +09:00
parent 46af97219c
commit 1b546bb562

View file

@ -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;