gtk4: Add gst_video::VideoMeta to the allocation metas in propose_allocation()

This commit is contained in:
Sebastian Dröge 2021-10-16 15:02:23 +03:00
parent d17c3483c1
commit cf637d0288

View file

@ -201,6 +201,16 @@ impl BaseSinkImpl for PaintableSink {
Ok(())
}
fn propose_allocation(
&self,
element: &Self::Type,
mut query: gst::query::Allocation<&mut gst::QueryRef>,
) -> Result<(), gst::ErrorMessage> {
query.add_allocation_meta::<gst_video::VideoMeta>(None);
self.parent_propose_allocation(element, query)
}
}
impl VideoSinkImpl for PaintableSink {