rust-ffmpeg icon indicating copy to clipboard operation
rust-ffmpeg copied to clipboard

When added to a graph, filter::Context can't be manipulated if another is added

Open VincentJousse opened this issue 1 year ago • 0 comments

To reproduce, use the transcode-audio example and :

  • Create a variable to store the first filter context.
  • Create the second filter context.
  • Do anything with the first.
let mut filter_context = filter.add(&filter::find("abuffer").unwrap(), "in", &args)?;
filter.add(&filter::find("abuffersink").unwrap(), "out", "")?;

filter_context.set_channel_layout(decoder.channel_layout());

The compiler complains about the Graph lifetime.

VincentJousse avatar Jul 03 '24 10:07 VincentJousse