Commit 4b77c18b authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

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

parent 884c9790
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment