zmwangx / rust-ffmpeg

Safe FFmpeg wrapper.
Do What The F*ck You Want To Public License
1.3k stars 203 forks source link

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

Closed VincentJousse closed 2 months ago

VincentJousse commented 3 months ago

To reproduce, use the transcode-audio example and :

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.