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-09-18 10:46:55 +0300
committerSebastian Dröge <sebastian@centricular.com>2021-09-18 11:58:59 +0300
commitf4613bfc072c2f8eda1e7c803bbc4788852f3117 (patch)
tree0dabd0f764fc376bd4e99e99aa0a1c113f8aef63 /video/ffv1
parent484cad00cea9294e8c464e70fc999da5e51cf4eb (diff)
Use Buffer::from_mut_slice() in more places
This allows downstream to map the memory mutable.
Diffstat (limited to 'video/ffv1')
-rw-r--r--video/ffv1/src/ffv1dec/imp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/ffv1/src/ffv1dec/imp.rs b/video/ffv1/src/ffv1dec/imp.rs
index cf4125a37..dd1b3e01a 100644
--- a/video/ffv1/src/ffv1dec/imp.rs
+++ b/video/ffv1/src/ffv1dec/imp.rs
@@ -174,7 +174,7 @@ impl Ffv1Dec {
// FIXME: we can also do this if we have video meta support and differing strides
let mem = if src_stride == dest_stride {
// Just wrap the decoded frame vecs and push them out
- gst::Memory::from_slice(decoded_plane)
+ gst::Memory::from_mut_slice(decoded_plane)
} else {
// Mismatched stride, let's copy
let out_plane = gst::Memory::with_size(dest_stride * comp_height);