X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Ffilter_graph.cc;h=fc6b9033ac97805e01b4ea45aaeca6dc6fb41208;hp=ba0e01ed534f131c7025f0a34c726cfe6f66ed15;hb=2d4e8c5f69cc694625ad95dcee554499605f823b;hpb=16e560c3815b52609de103b45c1d5d2cbf155b97 diff --git a/src/lib/filter_graph.cc b/src/lib/filter_graph.cc index ba0e01ed5..fc6b9033a 100644 --- a/src/lib/filter_graph.cc +++ b/src/lib/filter_graph.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -50,22 +50,11 @@ using std::weak_ptr; using dcp::Size; -/** Construct a FilterGraph for the settings in a piece of content */ -FilterGraph::FilterGraph () - : _graph (0) - , _copy (false) - , _buffer_src_context (0) - , _buffer_sink_context (0) - , _frame (0) -{ - -} - void FilterGraph::setup (vector filters) { - string const filters_string = Filter::ffmpeg_string (filters); - if (filters.empty ()) { + auto const filters_string = Filter::ffmpeg_string (filters); + if (filters.empty()) { _copy = true; return; }