mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-01 17:23:48 +00:00
aws: Ensure task stopping on paused-to-ready state change
Disconnect channel so that srcpad task can stop immediately Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2440>
This commit is contained in:
parent
a41a6954fc
commit
ef3c03074a
2 changed files with 2 additions and 0 deletions
|
@ -1186,6 +1186,7 @@ impl ElementImpl for Transcriber {
|
|||
})?;
|
||||
}
|
||||
gst::StateChange::PausedToReady => {
|
||||
let _ = self.state.lock().unwrap().result_rx.take();
|
||||
self.disconnect(true);
|
||||
}
|
||||
_ => (),
|
||||
|
|
|
@ -1245,6 +1245,7 @@ impl ElementImpl for Translate {
|
|||
})?;
|
||||
}
|
||||
gst::StateChange::PausedToReady => {
|
||||
let _ = self.state.lock().unwrap().translate_tx.take();
|
||||
self.disconnect(true);
|
||||
}
|
||||
_ => (),
|
||||
|
|
Loading…
Reference in a new issue