Skip to content

Commit 88e0469

Browse files
VincentJousseVincent Jousse
andauthored
feat: add filter::Context::link function to link two filters together (#196)
issue #195 Co-authored-by: Vincent Jousse <vincent.jousse@luminvent.com>
1 parent eb53560 commit 88e0469

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/filter/context/context.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ impl Context {
5252
let _ = option::Settable::set_channel_layout(self, "channel_layouts", value);
5353
}
5454
}
55+
56+
pub fn link(&mut self, srcpad: u32, dst: &mut Self, dstpad: u32) {
57+
unsafe { avfilter_link(self.as_mut_ptr(), srcpad, dst.as_mut_ptr(), dstpad) };
58+
}
5559
}
5660

5761
unsafe impl option::Target for Context {

0 commit comments

Comments
 (0)