fallbacksrc: Reset state in fallbacksrc custom source also if changing the state to READY before failed

Otherwise it will panic on the next try because always pads are already
linked to the ghostpads.
This commit is contained in:
Sebastian Dröge 2022-04-11 13:35:26 +03:00 committed by Sebastian Dröge
parent 0ba6ebb10f
commit 84402f39ef

View file

@ -138,7 +138,7 @@ impl ElementImpl for CustomSource {
let res = self.parent_change_state(element, transition)?;
match transition {
gst::StateChange::ReadyToNull => {
gst::StateChange::ReadyToNull | gst::StateChange::NullToNull => {
self.stop(element);
}
_ => (),