mirror of
https://github.com/encounter/rust-ffmpeg-zmwangx.git
synced 2026-07-10 21:18:40 -07:00
fix: impl Send and Sync for formats
This commit is contained in:
@@ -7,6 +7,9 @@ pub struct Input {
|
||||
ptr: *mut AVInputFormat,
|
||||
}
|
||||
|
||||
unsafe impl Send for Input { }
|
||||
unsafe impl Sync for Input { }
|
||||
|
||||
impl Input {
|
||||
pub unsafe fn wrap(ptr: *mut AVInputFormat) -> Self {
|
||||
Input { ptr }
|
||||
|
||||
@@ -13,6 +13,9 @@ pub struct Output {
|
||||
ptr: *mut AVOutputFormat,
|
||||
}
|
||||
|
||||
unsafe impl Send for Output { }
|
||||
unsafe impl Sync for Output { }
|
||||
|
||||
impl Output {
|
||||
pub unsafe fn wrap(ptr: *mut AVOutputFormat) -> Self {
|
||||
Output { ptr }
|
||||
|
||||
Reference in New Issue
Block a user