diff options
Diffstat (limited to 'video/gtk4/src/sink/paintable/imp.rs')
-rw-r--r-- | video/gtk4/src/sink/paintable/imp.rs | 8 |
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(); + } } |