X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Ffilter_graph.cc;h=daceeaf2d96924b97fb5af633927e73e04fdd2f7;hb=dffc146e5387a0b3f7a671d845d6c3051b0e7067;hp=44f20f7efe3d344172f174da63df06e531f9df80;hpb=3dbaa19ec24187777fb1c1237ddda5771b5010fd;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)); } }