mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-29 21:40:31 +00:00
gtk4: Add gst_video::VideoMeta to the allocation metas in propose_allocation()
This commit is contained in:
parent
d17c3483c1
commit
cf637d0288
1 changed files with 10 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue