X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffilter_graph.cc;h=daceeaf2d96924b97fb5af633927e73e04fdd2f7;hb=7c730205e50014347bd96ab9735346d0b5922798;hp=44f20f7efe3d344172f174da63df06e531f9df80;hpb=98664996b6a7ef62cbff49a174917a456f218e76;p=dcpomatic.git diff --git a/src/lib/filter_graph.cc b/src/lib/filter_graph.cc index 44f20f7ef..daceeaf2d 100644 --- a/src/lib/filter_graph.cc +++ b/src/lib/filter_graph.cc @@ -28,7 +28,6 @@ #include "image.h" #include "compose.hpp" extern "C" { -#include #include #include #include @@ -112,8 +111,9 @@ FilterGraph::setup (vector filters) throw DecodeError (N_("could not set up filter graph.")); } - if (avfilter_graph_config (_graph, 0) < 0) { - throw DecodeError (N_("could not configure filter graph.")); + int e = avfilter_graph_config (_graph, 0); + if (e < 0) { + throw DecodeError (String::compose (N_("could not configure filter graph (%1)"), e)); } }