diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-01 02:25:02 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-01 02:25:02 +0100 |
| commit | b468ccabdb13fca86ae8a324239d83490ef5832e (patch) | |
| tree | 816332e6d3437b3924c1fdf6ada7d61965136337 /src/tools/servomatictest.cc | |
| parent | 640c53f0a5f178a894ff2718bf6d74e9e977eb80 (diff) | |
XML metadata and some other bits.
Diffstat (limited to 'src/tools/servomatictest.cc')
| -rw-r--r-- | src/tools/servomatictest.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/tools/servomatictest.cc b/src/tools/servomatictest.cc index d08fefa90..3d847d690 100644 --- a/src/tools/servomatictest.cc +++ b/src/tools/servomatictest.cc @@ -32,8 +32,8 @@ #include "exceptions.h" #include "scaler.h" #include "log.h" -#include "decoder_factory.h" #include "video_decoder.h" +#include "playlist.h" using std::cout; using std::cerr; @@ -150,17 +150,14 @@ main (int argc, char* argv[]) server = new ServerDescription (server_host, 1); shared_ptr<Film> film (new Film (film_dir, true)); - /* XXX */ -// opt.decode_audio = false; -// opt.decode_subtitles = true; -// opt.video_sync = true; + shared_ptr<Playlist> playlist = film->playlist (); + playlist->disable_audio (); - Decoders decoders = decoder_factory (film); try { - decoders.video->Video.connect (boost::bind (process_video, _1, _2, _3)); + playlist->Video.connect (boost::bind (process_video, _1, _2, _3)); bool done = false; while (!done) { - done = decoders.video->pass (); + done = playlist->pass (); } } catch (std::exception& e) { cerr << "Error: " << e.what() << "\n"; |
