util/frame/video: implement DerefMut

This commit is contained in:
meh 2015-05-28 20:16:41 +02:00
parent c1d4a1f136
commit 27fa8c5878

View File

@ -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())