From 78291ccae0dd6372f0b335d98e6851d1583a734d Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Mon, 31 Jan 2022 14:12:11 +0100 Subject: [PATCH] gtk4: Implement Default for PaintableSink --- video/gtk4/src/sink/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/video/gtk4/src/sink/mod.rs b/video/gtk4/src/sink/mod.rs index 6711c48e..bae95498 100644 --- a/video/gtk4/src/sink/mod.rs +++ b/video/gtk4/src/sink/mod.rs @@ -107,6 +107,12 @@ impl PaintableSink { } } +impl Default for PaintableSink { + fn default() -> Self { + PaintableSink::new(None) + } +} + pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { gst::Element::register( Some(plugin),