Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2021-10-16 15:02:11 +0300
committerSebastian Dröge <sebastian@centricular.com>2021-10-16 15:02:11 +0300
commitd17c3483c19f690e746e8156508874adfdbef009 (patch)
tree7119f38c2a86686ea3cb3bd4d5e9489b10ed270b /video/dav1d
parent6ec98ec5e4712cf167c796a515068eec333fc33b (diff)
video: Update for new decide_allocation() signature
Diffstat (limited to 'video/dav1d')
-rw-r--r--video/dav1d/src/dav1ddec/imp.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/video/dav1d/src/dav1ddec/imp.rs b/video/dav1d/src/dav1ddec/imp.rs
index 7a42869d1..dff634b2d 100644
--- a/video/dav1d/src/dav1ddec/imp.rs
+++ b/video/dav1d/src/dav1ddec/imp.rs
@@ -464,13 +464,11 @@ impl VideoDecoderImpl for Dav1dDec {
fn decide_allocation(
&self,
element: &Self::Type,
- query: &mut gst::QueryRef,
+ query: gst::query::Allocation<&mut gst::QueryRef>,
) -> Result<(), gst::ErrorMessage> {
- if let gst::query::QueryView::Allocation(allocation) = query.view() {
- self.negotiation_infos.lock().unwrap().video_meta_supported = allocation
- .find_allocation_meta::<gst_video::VideoMeta>()
- .is_some();
- }
+ self.negotiation_infos.lock().unwrap().video_meta_supported = query
+ .find_allocation_meta::<gst_video::VideoMeta>()
+ .is_some();
self.parent_decide_allocation(element, query)
}