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
issue #195
  • Loading branch information
Vincent Jousse committed Jul 19, 2024
1 parent 1b49eca commit c42c18d
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 c42c18d

Please sign in to comment.