util/frame: only Frame needs to be Send

This commit is contained in:
meh
2015-06-09 23:47:10 +02:00
parent e188c69030
commit 32bf1b37ac
3 changed files with 31 additions and 7 deletions

View File

@ -31,6 +31,8 @@ pub struct Frame {
_own: bool,
}
unsafe impl Send for Frame { }
impl Frame {
pub unsafe fn wrap(ptr: *mut AVFrame) -> Self {
Frame { ptr: ptr, _own: false }
@ -149,8 +151,6 @@ impl Frame {
}
}
unsafe impl Send for Frame { }
impl Drop for Frame {
fn drop(&mut self) {
unsafe {