Missing read() calls in dcpdiff.
authorCarl Hetherington <cth@carlh.net>
Sun, 16 Sep 2012 19:03:58 +0000 (20:03 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 16 Sep 2012 19:03:58 +0000 (20:03 +0100)
tools/dcpdiff.cc

index 0b6ffd92b5f92e52960741336103577237922f4f..6141b8ff2e45bd168005bf4c3d8433d3f762939c 100644 (file)
@@ -79,6 +79,7 @@ main (int argc, char* argv[])
        DCP* a = 0;
        try {
                a = new DCP (argv[optind]);
+               a->read ();
        } catch (FileError& e) {
                cerr << "Could not read DCP " << argv[optind] << "; " << e.what() << " " << e.filename() << "\n";
                exit (EXIT_FAILURE);
@@ -87,6 +88,7 @@ main (int argc, char* argv[])
        DCP* b = 0;
        try {
                b = new DCP (argv[optind + 1]);
+               b->read ();
        } catch (FileError& e) {
                cerr << "Could not read DCP " << argv[optind + 1] << "; " << e.what() << " " << e.filename() << "\n";
                exit (EXIT_FAILURE);