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