Skip to content

Commit

Permalink
feat: add filter::Context::link function to link two filters together (
Browse files Browse the repository at this point in the history
…#196)

issue #195

Co-authored-by: Vincent Jousse <[email protected]>
  • Loading branch information
VincentJousse and Vincent Jousse authored Jul 30, 2024
1 parent eb53560 commit 88e0469
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/filter/context/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ impl Context {
let _ = option::Settable::set_channel_layout(self, "channel_layouts", value);
}
}

pub fn link(&mut self, srcpad: u32, dst: &mut Self, dstpad: u32) {
unsafe { avfilter_link(self.as_mut_ptr(), srcpad, dst.as_mut_ptr(), dstpad) };
}
}

unsafe impl option::Target for Context {
Expand Down

0 comments on commit 88e0469

Please sign in to comment.