fix: impl Send and Sync for formats

This commit is contained in:
meh
2021-03-19 16:04:11 +01:00
parent a9ea738d6b
commit 1a2fc1709d
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -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 }
+3
View File
@@ -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 }