util/frame/video: implement DerefMut
This commit is contained in:
parent
c1d4a1f136
commit
27fa8c5878
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user