mirror of
https://github.com/encounter/rust-ffmpeg.git
synced 2026-07-10 21:18:39 -07:00
fix(codec/context): remove thread_safe_callbacks, removed in 6.0
This commit is contained in:
@@ -96,7 +96,6 @@ impl Context {
|
||||
unsafe {
|
||||
(*self.as_mut_ptr()).thread_type = config.kind.into();
|
||||
(*self.as_mut_ptr()).thread_count = config.count as c_int;
|
||||
(*self.as_mut_ptr()).thread_safe_callbacks = if config.safe { 1 } else { 0 };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,7 +104,6 @@ impl Context {
|
||||
threading::Config {
|
||||
kind: threading::Type::from((*self.as_ptr()).active_thread_type),
|
||||
count: (*self.as_ptr()).thread_count as usize,
|
||||
safe: (*self.as_ptr()).thread_safe_callbacks != 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ use crate::ffi::*;
|
||||
pub struct Config {
|
||||
pub kind: Type,
|
||||
pub count: usize,
|
||||
pub safe: bool,
|
||||
}
|
||||
|
||||
impl Config {
|
||||
@@ -23,13 +22,6 @@ impl Config {
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
pub fn safe(value: bool) -> Self {
|
||||
Config {
|
||||
safe: value,
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Config {
|
||||
@@ -37,7 +29,6 @@ impl Default for Config {
|
||||
Config {
|
||||
kind: Type::None,
|
||||
count: 0,
|
||||
safe: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user