lavfi: print the error message when threading init fails.
authorNicolas George <george@nsup.org>
Mon, 19 Jun 2017 08:28:41 +0000 (10:28 +0200)
committerNicolas George <george@nsup.org>
Mon, 19 Jun 2017 08:29:17 +0000 (10:29 +0200)
libavfilter/avfiltergraph.c

index 598e50a..4304c06 100644 (file)
@@ -193,7 +193,7 @@ AVFilterContext *avfilter_graph_alloc_filter(AVFilterGraph *graph,
         } else {
             int ret = ff_graph_thread_init(graph);
             if (ret < 0) {
-                av_log(graph, AV_LOG_ERROR, "Error initializing threading.\n");
+                av_log(graph, AV_LOG_ERROR, "Error initializing threading: %s.\n", av_err2str(ret));
                 return NULL;
             }
         }