diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-12-06 20:11:06 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-12-06 20:11:24 +0300 |
commit | 3ed9e291c2e8abaf6dd6bc55c5e07bc59e561ff3 (patch) | |
tree | c820fccecd4c52d4e60aafa8ddf71b4fe9753f69 | |
parent | 66e987c174d23b053124d3d8c2f3e39f10caf70b (diff) |
Update for decide/propose_allocation() API changes
-rw-r--r-- | video/cdg/src/cdgdec/imp.rs | 4 | ||||
-rw-r--r-- | video/dav1d/src/dav1ddec/imp.rs | 2 | ||||
-rw-r--r-- | video/ffv1/src/ffv1dec/imp.rs | 2 | ||||
-rw-r--r-- | video/gif/src/gifenc/imp.rs | 2 | ||||
-rw-r--r-- | video/gtk4/src/sink/imp.rs | 2 | ||||
-rw-r--r-- | video/rav1e/src/rav1enc/imp.rs | 2 | ||||
-rw-r--r-- | video/videofx/src/border/roundedcorners.rs | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/video/cdg/src/cdgdec/imp.rs b/video/cdg/src/cdgdec/imp.rs index 529d900ff..06d596874 100644 --- a/video/cdg/src/cdgdec/imp.rs +++ b/video/cdg/src/cdgdec/imp.rs @@ -201,7 +201,7 @@ impl VideoDecoderImpl for CdgDec { &self, element: &Self::Type, query: gst::query::Allocation<&mut gst::QueryRef>, - ) -> Result<(), gst::ErrorMessage> { + ) -> Result<(), gst::LoggableError> { if query .find_allocation_meta::<gst_video::VideoMeta>() .is_some() @@ -211,7 +211,7 @@ impl VideoDecoderImpl for CdgDec { 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]))?; + .map_err(|_| gst::loggable_error!(CAT, "Failed to configure buffer pool"))?; } } diff --git a/video/dav1d/src/dav1ddec/imp.rs b/video/dav1d/src/dav1ddec/imp.rs index bb95e0c2d..384437579 100644 --- a/video/dav1d/src/dav1ddec/imp.rs +++ b/video/dav1d/src/dav1ddec/imp.rs @@ -462,7 +462,7 @@ impl VideoDecoderImpl for Dav1dDec { &self, element: &Self::Type, query: gst::query::Allocation<&mut gst::QueryRef>, - ) -> Result<(), gst::ErrorMessage> { + ) -> Result<(), gst::LoggableError> { self.negotiation_infos.lock().unwrap().video_meta_supported = query .find_allocation_meta::<gst_video::VideoMeta>() .is_some(); diff --git a/video/ffv1/src/ffv1dec/imp.rs b/video/ffv1/src/ffv1dec/imp.rs index 556dca298..fd5321626 100644 --- a/video/ffv1/src/ffv1dec/imp.rs +++ b/video/ffv1/src/ffv1dec/imp.rs @@ -457,7 +457,7 @@ impl VideoDecoderImpl for Ffv1Dec { &self, element: &Self::Type, query: gst::query::Allocation<&mut gst::QueryRef>, - ) -> Result<(), gst::ErrorMessage> { + ) -> Result<(), gst::LoggableError> { let supported = query .find_allocation_meta::<gst_video::VideoMeta>() .is_some(); diff --git a/video/gif/src/gifenc/imp.rs b/video/gif/src/gifenc/imp.rs index 7a3c32de7..64027cd11 100644 --- a/video/gif/src/gifenc/imp.rs +++ b/video/gif/src/gifenc/imp.rs @@ -274,7 +274,7 @@ impl VideoEncoderImpl for GifEnc { &self, element: &Self::Type, mut query: gst::query::Allocation<&mut gst::QueryRef>, - ) -> Result<(), gst::ErrorMessage> { + ) -> Result<(), gst::LoggableError> { query.add_allocation_meta::<gst_video::VideoMeta>(None); self.parent_propose_allocation(element, query) } diff --git a/video/gtk4/src/sink/imp.rs b/video/gtk4/src/sink/imp.rs index 3b3705414..bb9634024 100644 --- a/video/gtk4/src/sink/imp.rs +++ b/video/gtk4/src/sink/imp.rs @@ -226,7 +226,7 @@ impl BaseSinkImpl for PaintableSink { &self, element: &Self::Type, mut query: gst::query::Allocation<&mut gst::QueryRef>, - ) -> Result<(), gst::ErrorMessage> { + ) -> Result<(), gst::LoggableError> { query.add_allocation_meta::<gst_video::VideoMeta>(None); // TODO: Provide a preferred "window size" here for higher-resolution rendering diff --git a/video/rav1e/src/rav1enc/imp.rs b/video/rav1e/src/rav1enc/imp.rs index 014dd255a..3a57b49e3 100644 --- a/video/rav1e/src/rav1enc/imp.rs +++ b/video/rav1e/src/rav1enc/imp.rs @@ -487,7 +487,7 @@ impl VideoEncoderImpl for Rav1Enc { &self, element: &Self::Type, mut query: gst::query::Allocation<&mut gst::QueryRef>, - ) -> Result<(), gst::ErrorMessage> { + ) -> Result<(), gst::LoggableError> { query.add_allocation_meta::<gst_video::VideoMeta>(None); self.parent_propose_allocation(element, query) } diff --git a/video/videofx/src/border/roundedcorners.rs b/video/videofx/src/border/roundedcorners.rs index 8dbebf0de..84361ec6c 100644 --- a/video/videofx/src/border/roundedcorners.rs +++ b/video/videofx/src/border/roundedcorners.rs @@ -612,7 +612,7 @@ impl BaseTransformImpl for RoundedCorners { element: &Self::Type, decide_query: Option<gst::query::Allocation<&gst::QueryRef>>, mut query: gst::query::Allocation<&mut gst::QueryRef>, - ) -> Result<(), gst::ErrorMessage> { + ) -> Result<(), gst::LoggableError> { query.add_allocation_meta::<gst_video::VideoMeta>(None); self.parent_propose_allocation(element, decide_query, query) } |