mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-06-10 18:29:22 +00:00
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
This commit is contained in:
parent
d867ef9dee
commit
c6238a6a9f
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue