utils/fallbacksrc: Forward the state change return of custom sources

Without this, custom sources that are live are not actually considered
live.
This commit is contained in:
Sebastian Dröge 2020-07-31 11:18:35 +03:00
parent 42a3cf8bb2
commit 0ce36c0f76

View file

@ -2310,15 +2310,16 @@ mod custom_source {
_ => (),
}
self.parent_change_state(element.upcast_ref(), transition)?;
let res = self.parent_change_state(element.upcast_ref(), transition)?;
match transition {
gst::StateChange::ReadyToNull => {
self.stop(element)?;
Ok(gst::StateChangeSuccess::Success)
}
_ => Ok(gst::StateChangeSuccess::Success),
_ => (),
}
Ok(res)
}
}