forked from mirrors/gstreamer-rs
Revert "Don't require &mut self for GstRc::get_mut()"
This reverts commit 4b77c18b5b
.
It unfortunately allows to get multiple mutable references to the same
underlying data, which is not allowed.
This commit is contained in:
parent
2e2dd95365
commit
5589d5221f
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ impl<T: MiniObject> GstRc<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_mut(&self) -> Option<&mut T> {
|
pub fn get_mut(&mut self) -> Option<&mut T> {
|
||||||
if self.is_writable() {
|
if self.is_writable() {
|
||||||
Some(unsafe { &mut *self.obj })
|
Some(unsafe { &mut *self.obj })
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue