X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Ftools%2Fserver_test.cc;h=5e50df227ed703f87d229005e861d418df00c630;hb=3828baf56467224f5d44049bf1e7a7ed11f43a05;hp=b7e48a3331c96bff2c0df518c4179dfb4481ff5d;hpb=5ce9c7026366d82233e8852b9b949362ed2f6191;p=dcpomatic.git diff --git a/src/tools/server_test.cc b/src/tools/server_test.cc index b7e48a333..5e50df227 100644 --- a/src/tools/server_test.cc +++ b/src/tools/server_test.cc @@ -1,48 +1,50 @@ /* Copyright (C) 2012-2015 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ -#include -#include -#include -#include #include "lib/ratio.h" #include "lib/film.h" #include "lib/filter.h" #include "lib/util.h" -#include "lib/server.h" +#include "lib/encode_server.h" #include "lib/dcp_video.h" #include "lib/decoder.h" #include "lib/exceptions.h" -#include "lib/log.h" +#include "lib/file_log.h" #include "lib/video_decoder.h" #include "lib/player.h" #include "lib/player_video.h" -#include "lib/data.h" +#include "lib/encode_server_description.h" +#include +#include +#include +#include using std::cout; using std::cerr; using std::string; using std::pair; using boost::shared_ptr; +using dcp::Data; static shared_ptr film; -static ServerDescription* server; +static EncodeServerDescription* server; static shared_ptr log_ (new FileLog ("servomatictest.log")); static int frame_count = 0; @@ -138,11 +140,11 @@ main (int argc, char* argv[]) dcpomatic_setup (); try { - server = new ServerDescription (server_host, 1); + server = new EncodeServerDescription (server_host, 1); film.reset (new Film (film_dir)); film->read_metadata (); - shared_ptr player (new Player (film)); + shared_ptr player (new Player (film, film->playlist ())); DCPTime const frame = DCPTime::from_frames (1, film->video_frame_rate ()); for (DCPTime t; t < film->length(); t += frame) {