Split Options into encode / decode.
[dcpomatic.git] / src / wx / film_viewer.cc
index 12fe302f4564bd849cbec7813470947412e5da1f..1ed560428e32777ef601422019d3389f7a2e1034 100644 (file)
@@ -104,10 +104,9 @@ FilmViewer::set_film (shared_ptr<Film> f)
                return;
        }
 
-       /* XXX: Options is not decoder-specific at all */
-       shared_ptr<Options> o (new Options ("", "", ""));
+       shared_ptr<DecodeOptions> o (new DecodeOptions);
        o->decode_audio = false;
-       o->decoder_alignment = false;
+       o->video_sync = false;
        _decoders = decoder_factory (_film, o, 0);
        _decoders.video->Video.connect (bind (&FilmViewer::process_video, this, _1, _2));