Commit 5589d522 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Revert "Don't require &mut self for GstRc::get_mut()"

This reverts commit 4b77c18b.

It unfortunately allows to get multiple mutable references to the same
underlying data, which is not allowed.
parent 2e2dd953
......@@ -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 {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment