fallbackswitch: Reset fallback pad state on remove.

This commit is contained in:
Jan Schmidt 2020-12-11 23:53:11 +11:00 committed by Sebastian Dröge
parent f57ce41e89
commit b80a607737

View file

@ -888,6 +888,8 @@ impl ElementImpl for FallbackSwitch {
element.remove_pad(pad).unwrap();
gst_debug!(CAT, obj: element, "Removed fallback sinkpad {:?}", pad);
}
*self.fallback_state.write().unwrap() = PadInputState::default();
*self.active_sinkpad.lock().unwrap() = None;
}
}