codec/context: move impl Send closer to the type definition

This commit is contained in:
meh 2015-06-10 22:05:20 +02:00
parent 9143df44f4
commit e95c55dbf5

View File

@ -15,6 +15,8 @@ pub struct Context {
_own: bool,
}
unsafe impl Send for Context { }
impl Context {
pub unsafe fn wrap(ptr: *mut AVCodecContext) -> Self {
Context { ptr: ptr, _own: false }
@ -138,8 +140,6 @@ impl Context {
}
}
unsafe impl Send for Context { }
impl Drop for Context {
fn drop(&mut self) {
if self._own {