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=ac34066d5e448d1984d11a180be74e31b6e13b5c;hpb=1516214cdc7970797b79bca06b46a2eed16a1da3 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; }