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:
Sebastian Dröge 2017-10-11 15:30:55 +03:00
parent 2e2dd95365
commit 5589d5221f

View file

@ -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() {
Some(unsafe { &mut *self.obj })
} else {