13
0

AAF Import CLI: fix media location, use new libAAF API

This commit is contained in:
Robin Gareus 2023-12-26 14:35:37 +01:00
parent c5db23a15c
commit 128278c75f
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -858,9 +858,9 @@ main (int argc, char* argv[])
AAF_Iface* aafi = aafi_alloc (NULL);
aafi->ctx.options.trace = 1;
aafi->ctx.options.resolve = aaf_resolve_options;
aafi->ctx.options.protools = aaf_protools_options;
aafi_set_option_int (aafi, "trace", 1);
aafi_set_option_int (aafi, "protools", aaf_protools_options);
aafi_set_option_int (aafi, "resolve", aaf_resolve_options);
/*
* The following "forbid_nonlatin_filenames" option is there until we find a
@ -890,11 +890,9 @@ main (int argc, char* argv[])
::exit (EXIT_FAILURE);
}
aafi_set_debug (aafi, VERB_DEBUG, logfilefp, NULL, NULL);
aafi_set_debug (aafi, VERB_DEBUG, 0, logfilefp, NULL, NULL);
if (!media_location_path.empty ()) {
aafi_set_media_location (aafi, media_location_path.c_str ());
}
aafi_set_option_str (aafi, "media_location", media_location_path.c_str ());
if (aafi_load_file (aafi, aaf_file.c_str ())) {
PBD::error << "Could not load AAF file." << endmsg;