mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-15 23:01:02 +00:00
gtk4: Don't error out when the main context channel does not exist anymore when rendering
But instead return flushing to shut down silently. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1027>
This commit is contained in:
parent
993619d654
commit
e8701652e2
1 changed files with 2 additions and 2 deletions
|
@ -440,12 +440,12 @@ impl VideoSinkImpl for PaintableSink {
|
|||
let sender = self.sender.lock().unwrap();
|
||||
let sender = sender.as_ref().ok_or_else(|| {
|
||||
gst::error!(CAT, imp: self, "Have no main thread sender");
|
||||
gst::FlowError::Error
|
||||
gst::FlowError::Flushing
|
||||
})?;
|
||||
|
||||
sender.send(SinkEvent::FrameChanged).map_err(|_| {
|
||||
gst::error!(CAT, imp: self, "Have main thread receiver shut down");
|
||||
gst::FlowError::Error
|
||||
gst::FlowError::Flushing
|
||||
})?;
|
||||
|
||||
Ok(gst::FlowSuccess::Ok)
|
||||
|
|
Loading…
Reference in a new issue