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

github.com/sdroege/gst-plugin-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/paintable/imp.rs')
-rw-r--r--video/gtk4/src/sink/paintable/imp.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/video/gtk4/src/sink/paintable/imp.rs b/video/gtk4/src/sink/paintable/imp.rs
index f270709f..7134ad25 100644
--- a/video/gtk4/src/sink/paintable/imp.rs
+++ b/video/gtk4/src/sink/paintable/imp.rs
@@ -196,4 +196,12 @@ impl Paintable {
self.obj().invalidate_contents();
}
}
+
+ pub(super) fn handle_flush_frames(&self) {
+ gst::debug!(CAT, imp: self, "Flushing frames");
+ self.paintables.borrow_mut().clear();
+ self.cached_textures.borrow_mut().clear();
+ self.obj().invalidate_size();
+ self.obj().invalidate_contents();
+ }
}