if let Some(str_idx) = self.ostr_opts.iter().position(|str| str.id == out_id) {
let oopts = &mut self.ostr_opts[str_idx];
- if cname == "copy" && istr.get_info().get_name() == cname {
+ if oopts.enc_name.as_str() == "copy" && (cname == "any" || istr.get_info().get_name() == cname) {
+ out_sm.add_stream_ref(istr.clone());
self.encoders.push(OutputMode::Copy(out_id));
} else if cname == "any" || oopts.enc_name.as_str() == cname {
let enc_create = enc_reg.find_encoder(oopts.enc_name.as_str());
}
} else {
if cname == "any" || istr.get_info().get_name() == cname {
+ out_sm.add_stream_ref(istr.clone());
self.encoders.push(OutputMode::Copy(out_id));
} else {
println!("stream {} ({}) can't be handled", istr.id, istr.get_info().get_name());