}
public static void dump_encoding_profile (EncodingProfile profile,
- int indent = 0) {
+ int indent = 2) {
var indent_s = string.nfill (indent, ' ');
- debug (indent_s + "Dumping %s", profile.get_name ());
+ debug (indent_s + "%s:", profile.get_name ());
debug (indent_s + " Format: %s", profile.get_format ().to_string ());
if (profile.get_restriction () != null) {
debug (indent_s + " Restriction: %s",
}
if (profile is EncodingContainerProfile) {
- foreach (var subprofile in (profile as EncodingContainerProfile).get_profiles ()) {
- dump_encoding_profile (subprofile, indent + 4);
- }
+ var container = profile as EncodingContainerProfile;
+ foreach (var subprofile in container.get_profiles ()) {
+ dump_encoding_profile (subprofile, indent + 4);
+ }
}
}
ENCODE_BIN);
encoder.profile = this.get_encoding_profile ();
+ debug ("%s using the following encoding profile:",
+ this.get_class ().get_type ().name ());
GstUtils.dump_encoding_profile (encoder.profile);
var bin = new Bin ("transcoder-source");