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:
authorPhilippe Normand <philn@igalia.com>2022-06-30 19:50:40 +0300
committerArun Raghavan <arun@arunraghavan.net>2022-06-30 20:10:13 +0300
commitc6238a6a9f35c34e8bd4f8f4ccc727a5f8c0e6b1 (patch)
tree10688b59ecc6722c10e6d198fa9bc6f96b4c95ae /video/videofx
parentd867ef9deebab36ccb0eaa43fb1b1582dd204021 (diff)
roundedcorners: Ensure alpha_mem is mutable when updating radius
The `get_mut()` function can return None when the memory is not writable, so instead, make sure the memory is writable by using `make_mut()`. Fixes #214
Diffstat (limited to 'video/videofx')
-rw-r--r--video/videofx/src/border/roundedcorners.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/videofx/src/border/roundedcorners.rs b/video/videofx/src/border/roundedcorners.rs
index d856a1881..1051e73b6 100644
--- a/video/videofx/src/border/roundedcorners.rs
+++ b/video/videofx/src/border/roundedcorners.rs
@@ -115,7 +115,7 @@ impl RoundedCorners {
let alpha_stride = out_info.stride()[3];
let mem = &mut state.alpha_mem;
- let mut_mem = mem.get_mut().unwrap();
+ let mut_mem = mem.make_mut();
let mut alpha_mem = mut_mem
.map_writable()