diff options
author | softworkz <softworkz@hotmail.com> | 2025-05-16 10:37:29 +0200 |
---|---|---|
committer | softworkz <softworkz@hotmail.com> | 2025-05-16 10:37:29 +0200 |
commit | 79e2a845cd162696c7652bbb6cd407bfa24b738b (patch) | |
tree | 18ab840d63a4f1c241b16a2ca76c537a80d08cb5 /fftools/graph/graphprint.c | |
parent | 505510acdad5bc08b67e01d66c5b339c8fe27d39 (diff) | |
download | ffmpeg-79e2a845cd162696c7652bbb6cd407bfa24b738b.tar.gz |
Revert "fftools/graphprint: Now, make it a Killer-Feature!"
This reverts commit 1f2b8d7238eff4ab8a4d8d6177e250b8180d51f4.
Diffstat (limited to 'fftools/graph/graphprint.c')
-rw-r--r-- | fftools/graph/graphprint.c | 48 |
1 files changed, 1 insertions, 47 deletions
diff --git a/fftools/graph/graphprint.c b/fftools/graph/graphprint.c index 19c3302319..fc94a75797 100644 --- a/fftools/graph/graphprint.c +++ b/fftools/graph/graphprint.c @@ -879,11 +879,6 @@ static int init_graphprint(GraphPrintContext **pgpc, AVBPrint *target_buf) av_bprint_init(target_buf, 0, AV_BPRINT_SIZE_UNLIMITED); - if (show_graph) { - if (!print_graphs_format || strcmp(print_graphs_format, "mermaidhtml") != 0) - print_graphs_format = av_strdup("mermaidhtml"); - } - if (!print_graphs_format) print_graphs_format = av_strdup("json"); if (!print_graphs_format) { @@ -1108,46 +1103,5 @@ cleanup: int print_filtergraphs(FilterGraph **graphs, int nb_graphs, InputFile **ifiles, int nb_ifiles, OutputFile **ofiles, int nb_ofiles) { - int ret; - - if (show_graph) { - char buf[2048]; - AVBPrint bp; - - av_bprint_init(&bp, 0, AV_BPRINT_SIZE_UNLIMITED); - - print_graphs = 0; - - ret = ff_get_temp_dir(buf, sizeof(buf)); - if (ret) { - av_log(NULL, AV_LOG_ERROR, "Error getting temp directory path for graph output file\n"); - return ret; - } - - av_bprint_append_data(&bp, buf, strlen(buf)); - - ret = ff_make_timestamped_html_name(buf, sizeof(buf)); - if (ret) { - av_log(NULL, AV_LOG_ERROR, "Error creating temp file name for graph output file\n"); - return ret; - } - - av_bprint_append_data(&bp, buf, strlen(buf)); - - av_bprint_finalize(&bp, &print_graphs_file); - } - - ret = print_filtergraphs_priv(graphs, nb_graphs, ifiles, nb_ifiles, ofiles, nb_ofiles); - - if (!ret && show_graph) { - av_log(NULL, AV_LOG_INFO, "Execution graph saved as: %s\n", print_graphs_file); - av_log(NULL, AV_LOG_INFO, "Trying to launch graph in browser...\n"); - - ret = ff_open_html_in_browser(print_graphs_file); - if (ret) { - av_log(NULL, AV_LOG_ERROR, "Browser could not be launched for execution graph display\nPlease open manually: %s\n", print_graphs_file); - } - } - - return ret; + return print_filtergraphs_priv(graphs, nb_graphs, ifiles, nb_ifiles, ofiles, nb_ofiles); } |