From: Jaroslav Kysela Date: Wed, 13 Sep 2017 09:10:27 +0000 (+0200) Subject: transcode: dump the filter graph X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=180764e4d4564e1c61d37f7cb252fff8f2ee7b83;p=thirdparty%2Ftvheadend.git transcode: dump the filter graph --- diff --git a/src/transcoding/transcode/context.c b/src/transcoding/transcode/context.c index c346756f0..fcd2725f3 100644 --- a/src/transcoding/transcode/context.c +++ b/src/transcoding/transcode/context.c @@ -609,6 +609,18 @@ tvh_context_open_filters(TVHContext *self, tvh_context_log(self, LOG_ERR, "filters: failed to config filter graph"); } + if (ret >= 0 && tvhtrace_enabled()) { + char *graph = avfilter_graph_dump(self->avfltgraph, NULL); + char *str, *token, *saveptr; + for (str = graph; ; str = NULL) { + token = strtok_r(str, "\n", &saveptr); + if (token == NULL) + break; + tvh_context_log(self, LOG_TRACE, "filters dump: %s", token); + } + av_freep(&graph); + } + finish: if (par) { av_freep(&par);