codec/context: move impl Send closer to the type definition
This commit is contained in:
parent
9143df44f4
commit
e95c55dbf5
@ -15,6 +15,8 @@ pub struct Context {
|
|||||||
_own: bool,
|
_own: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe impl Send for Context { }
|
||||||
|
|
||||||
impl Context {
|
impl Context {
|
||||||
pub unsafe fn wrap(ptr: *mut AVCodecContext) -> Self {
|
pub unsafe fn wrap(ptr: *mut AVCodecContext) -> Self {
|
||||||
Context { ptr: ptr, _own: false }
|
Context { ptr: ptr, _own: false }
|
||||||
@ -138,8 +140,6 @@ impl Context {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl Send for Context { }
|
|
||||||
|
|
||||||
impl Drop for Context {
|
impl Drop for Context {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
if self._own {
|
if self._own {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user