mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 10:30:40 +00:00
dav1d: Don't configure a buffer pool and don't require one for videometa support
dav1d is allocating memory itself and we directly forward that without using any downstream buffer pool.
This commit is contained in:
parent
f4613bfc07
commit
4c8c398aa4
1 changed files with 2 additions and 12 deletions
|
@ -467,19 +467,9 @@ impl VideoDecoderImpl for Dav1dDec {
|
|||
query: &mut gst::QueryRef,
|
||||
) -> Result<(), gst::ErrorMessage> {
|
||||
if let gst::query::QueryView::Allocation(allocation) = query.view() {
|
||||
if allocation
|
||||
self.negotiation_infos.lock().unwrap().video_meta_supported = allocation
|
||||
.find_allocation_meta::<gst_video::VideoMeta>()
|
||||
.is_some()
|
||||
{
|
||||
let pools = allocation.allocation_pools();
|
||||
if let Some((Some(ref pool), _, _, _)) = pools.first() {
|
||||
let mut config = pool.config();
|
||||
config.add_option(&gst_video::BUFFER_POOL_OPTION_VIDEO_META);
|
||||
pool.set_config(config)
|
||||
.map_err(|e| gst::error_msg!(gst::CoreError::Negotiation, [&e.message]))?;
|
||||
self.negotiation_infos.lock().unwrap().video_meta_supported = true;
|
||||
}
|
||||
}
|
||||
.is_some();
|
||||
}
|
||||
|
||||
self.parent_decide_allocation(element, query)
|
||||
|
|
Loading…
Reference in a new issue