From: Carl Hetherington Date: Wed, 1 Mar 2017 11:56:28 +0000 (+0000) Subject: Remove old test. X-Git-Tag: v2.11.1~70 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=71c8a5601a144e6c9b9373273ed09c7d3b4e7e78;p=dcpomatic.git Remove old test. --- diff --git a/test/play_test.cc b/test/play_test.cc deleted file mode 100644 index 92c49a134..000000000 --- a/test/play_test.cc +++ /dev/null @@ -1,131 +0,0 @@ -/* - Copyright (C) 2013-2014 Carl Hetherington - - 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. - - 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 DCP-o-matic. If not, see . - -*/ - -#include -#include "lib/player.h" -#include "lib/ratio.h" -#include "lib/dcp_content_type.h" -#include "lib/player_video_frame.h" -#include "test.h" -#include - -/* This test needs stuff in Player that is only included in debug mode */ -#ifdef DCPOMATIC_DEBUG - -using std::cout; -using boost::optional; -using boost::shared_ptr; - -struct Video -{ - boost::shared_ptr content; - boost::shared_ptr image; - Time time; -}; - -class PlayerWrapper -{ -public: - PlayerWrapper (shared_ptr p) - : _player (p) - { - _player->Video.connect (bind (&PlayerWrapper::process_video, this, _1, _3)); - } - - void process_video (shared_ptr i, Time t) - { - Video v; - v.content = _player->_last_video; - v.image = i->image (PIX_FMT_RGB24); - v.time = t; - _queue.push_front (v); - } - - optional