if transcoder.input_name.iter().flatten().count() == 0 {
println!("no input name(s) provided");
- transcoder.debug_log(DebugLog::GENERAL, &format!("no input name(s) provided"));
+ transcoder.debug_log(DebugLog::GENERAL, "no input name(s) provided");
return;
}
if transcoder.output_name.is_empty() {
println!("no output name provided");
- transcoder.debug_log(DebugLog::GENERAL, &format!("no output name provided"));
+ transcoder.debug_log(DebugLog::GENERAL, "no output name provided");
return;
}
}
fmtname
} else if transcoder.output_name.as_str() == "/dev/null" {
- transcoder.debug_log(DebugLog::MUX, &format!("Using null muxer"));
+ transcoder.debug_log(DebugLog::MUX, "Using null muxer");
"null"
} else if let Some(fmtname) = detect::detect_format_by_name(transcoder.output_name.as_str()) {
transcoder.debug_log(DebugLog::MUX, &format!("Detected muxer format as {fmtname}"));
if custom_profile && !profile_name.is_empty() {
println!("profile setting is incompatible with custom --ostream options");
- transcoder.debug_log(DebugLog::GENERAL, &format!("profile setting is incompatible with custom --ostream options"));
+ transcoder.debug_log(DebugLog::GENERAL, "profile setting is incompatible with custom --ostream options");
return;
}
if !profile_name.is_empty() {
transcoder.queue.set_sync(force_sync || !mux_quirks.is_unsync());
if transcoder.calc_len {
- transcoder.debug_log(DebugLog::GENERAL, &format!("Calculating total length of input streams"));
+ transcoder.debug_log(DebugLog::GENERAL, "Calculating total length of input streams");
let mut sids = Vec::new();
transcoder.nframes.clear();
demuxers.clear();
if !transcoder.create_demuxers(&mut demuxers, &full_reg, false) {
println!("failed to re-create demuxer(s)");
- transcoder.debug_log(DebugLog::GENERAL, &format!("failed to re-create demuxer(s)"));
+ transcoder.debug_log(DebugLog::GENERAL, "failed to re-create demuxer(s)");
return;
}
}
let mut out_sm = StreamManager::new();
if !transcoder.negotiate_stream_map(&ism, mux_caps, &mut out_sm, &full_reg.enc_reg) {
println!("cannot determine stream map");
- transcoder.debug_log(DebugLog::GENERAL, &format!("cannot determine stream map"));
+ transcoder.debug_log(DebugLog::GENERAL, "cannot determine stream map");
return;
}
break;
}
}
- transcoder.debug_log(DebugLog::GENERAL, &format!("Demuxing done, flushing leftover frames"));
+ transcoder.debug_log(DebugLog::GENERAL, "Demuxing done, flushing leftover frames");
'reord_flush_loop: for stream in ism.iter() {
let src_id = stream.get_num();
if let OutputMode::Encode(dst_id, ref mut encoder) = transcoder.encoders[src_id] {
}
}
}
- transcoder.debug_log(DebugLog::GENERAL, &format!("Flushing encoders"));
+ transcoder.debug_log(DebugLog::GENERAL, "Flushing encoders");
/*'flush_loop:*/ for enc in transcoder.encoders.iter_mut() {
match enc {
OutputMode::Encode(str_id, ref mut encoder) => {
};
}
- transcoder.debug_log(DebugLog::GENERAL, &format!("Flushing encoded packets"));
+ transcoder.debug_log(DebugLog::GENERAL, "Flushing encoded packets");
retrieve_packets(&mut transcoder, &mut mux, &mut vdata_size, &mut adata_size, true);
if transcoder.verbose > 0 {
println!();
}
- transcoder.debug_log(DebugLog::MUX, &format!("Finalising muxing"));
+ transcoder.debug_log(DebugLog::MUX, "Finalising muxing");
let ret = mux.end();
if ret.is_err() {
println!("error at finalising muxing");