Commit 92c6c21e authored by Jan Gerber's avatar Jan Gerber
Browse files

less output in frontend mode

parent d864bae9
......@@ -2898,7 +2898,6 @@ int main(int argc, char **argv) {
if (info.twopass!=3 || info.passno==1) {
av_dump_format(convert->context, 0,inputfile_name, 0);
}
}
if (convert->disable_audio) {
fprintf(stderr, " [audio disabled].\n");
}
......@@ -2908,13 +2907,15 @@ int main(int argc, char **argv) {
if (!convert->included_subtitles) {
fprintf(stderr, " [subtitles disabled].\n");
}
}
if (convert->disable_metadata) {
if (!info.frontend)
fprintf(stderr, " [metadata disabled].\n");
} else {
copy_metadata(convert->context);
}
if (!convert->sync) {
if (!convert->sync && !info.frontend) {
fprintf(stderr, " Ignore A/V Sync from input container.\n");
}
......@@ -2967,9 +2968,11 @@ int main(int argc, char **argv) {
if (info.twopass_file)
fclose(info.twopass_file);
if (info.frontend)
if (info.frontend) {
fprintf(info.frontend, "{\"result\": \"ok\"}\n");
if (info.frontend && info.frontend != stderr)
fflush(info.frontend);
}
if (info.frontend && info.frontend != stdout)
fclose(info.frontend);
#ifdef WIN32
if (info.twopass==3)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment