gtk4: Implement Default for PaintableSink

This commit is contained in:
Julian Sparber 2022-01-31 14:12:11 +01:00 committed by Sebastian Dröge
parent 0f812765b5
commit 78291ccae0

View file

@ -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),