From 27fa8c587878eeb718ec45707662bcaff0ff0ac1 Mon Sep 17 00:00:00 2001 From: meh Date: Thu, 28 May 2015 20:16:41 +0200 Subject: [PATCH] util/frame/video: implement DerefMut --- src/util/frame/video.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/util/frame/video.rs b/src/util/frame/video.rs index 3bb584b..d20b7ba 100644 --- a/src/util/frame/video.rs +++ b/src/util/frame/video.rs @@ -1,6 +1,6 @@ use libc::c_int; use std::mem; -use std::ops::Deref; +use std::ops::{Deref, DerefMut}; use ffi::*; use ::{Rational, Picture}; @@ -189,6 +189,12 @@ impl Deref for Video { } } +impl DerefMut for Video { + fn deref_mut(&mut self) -> &mut Frame { + &mut self.0 + } +} + impl Clone for Video { fn clone(&self) -> Self { Video(self.0.clone())