mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-22 08:58:15 +00:00
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:
parent
42a3cf8bb2
commit
0ce36c0f76
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue