AAF Import CLI: fix media location, use new libAAF API
This commit is contained in:
parent
c5db23a15c
commit
128278c75f
@ -858,9 +858,9 @@ main (int argc, char* argv[])
|
|||||||
|
|
||||||
AAF_Iface* aafi = aafi_alloc (NULL);
|
AAF_Iface* aafi = aafi_alloc (NULL);
|
||||||
|
|
||||||
aafi->ctx.options.trace = 1;
|
aafi_set_option_int (aafi, "trace", 1);
|
||||||
aafi->ctx.options.resolve = aaf_resolve_options;
|
aafi_set_option_int (aafi, "protools", aaf_protools_options);
|
||||||
aafi->ctx.options.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
|
* The following "forbid_nonlatin_filenames" option is there until we find a
|
||||||
@ -890,11 +890,9 @@ main (int argc, char* argv[])
|
|||||||
::exit (EXIT_FAILURE);
|
::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_option_str (aafi, "media_location", media_location_path.c_str ());
|
||||||
aafi_set_media_location (aafi, media_location_path.c_str ());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (aafi_load_file (aafi, aaf_file.c_str ())) {
|
if (aafi_load_file (aafi, aaf_file.c_str ())) {
|
||||||
PBD::error << "Could not load AAF file." << endmsg;
|
PBD::error << "Could not load AAF file." << endmsg;
|
||||||
|
Loading…
Reference in New Issue
Block a user