mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 19:41:09 +00:00
Don't require &mut self for GstRc::get_mut()
This commit is contained in:
parent
884c9790ef
commit
4b77c18b5b
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ impl<T: MiniObject> GstRc<T> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn get_mut(&mut self) -> Option<&mut T> {
|
||||
pub fn get_mut(&self) -> Option<&mut T> {
|
||||
if self.is_writable() {
|
||||
Some(unsafe { &mut *self.obj })
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue