Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'video/gtk4/src/sink/imp.rs')
-rw-r--r--video/gtk4/src/sink/imp.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/video/gtk4/src/sink/imp.rs b/video/gtk4/src/sink/imp.rs
index 4d66d4a47..b74b8d7e5 100644
--- a/video/gtk4/src/sink/imp.rs
+++ b/video/gtk4/src/sink/imp.rs
@@ -452,11 +452,11 @@ impl PaintableSink {
self.pending_frame.lock().unwrap().take()
}
- fn do_action(&self, action: SinkEvent) -> glib::Continue {
+ fn do_action(&self, action: SinkEvent) -> glib::ControlFlow {
let paintable = self.paintable.lock().unwrap();
let paintable = match &*paintable {
Some(paintable) => paintable,
- None => return glib::Continue(false),
+ None => return glib::ControlFlow::Break,
};
match action {
@@ -468,7 +468,7 @@ impl PaintableSink {
}
}
- glib::Continue(true)
+ glib::ControlFlow::Continue
}
fn configure_caps(&self) {
@@ -519,7 +519,7 @@ impl PaintableSink {
receiver.attach(
Some(&glib::MainContext::default()),
glib::clone!(
- @weak self_ => @default-return glib::Continue(false),
+ @weak self_ => @default-return glib::ControlFlow::Break,
move |action| self_.do_action(action)
),
);