Add missing initialisation calls to example.
[libdcp.git] / examples / read_dcp.cc
index 1601ffceea33c518d95913ae4a90015fe6cfec55..b8dd7dd930cdb6be68529dc21670e612e4921320 100644 (file)
@@ -51,6 +51,10 @@ LIBDCP_ENABLE_WARNINGS
 int
 main ()
 {
+       /* Unless libdcp has been installed, you need to pass a path containing the "tags" folder here */
+       dcp::init(boost::filesystem::path("."));
+       Magick::InitializeMagick(nullptr);
+
        /* Create a DCP, specifying where our existing data is */
        dcp::DCP dcp ("/home/carl/Test_DCP");
        /* Read the DCP to find out about it */