mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-16 12:55:13 +00:00
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:
parent
0ba6ebb10f
commit
84402f39ef
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
_ => (),
|
||||
|
|
Loading…
Reference in a new issue