Stop using static initialisation so that dcpomatic::write() can be called more than...
[dcpomatic.git] / src / lib / content.h
index d17b0d0e5a22f86360e8a678073add3a620f9084..7c02ee0e39effc323216cfc28d29da07ea63d236 100644 (file)
 #ifndef DCPOMATIC_CONTENT_H
 #define DCPOMATIC_CONTENT_H
 
-#include "types.h"
-#include "signaller.h"
-#include "dcpomatic_time.h"
+
 #include "change_signaller.h"
+#include "dcpomatic_time.h"
+#include "signaller.h"
+#include "types.h"
 #include "user_property.h"
 #include <libcxml/cxml.h>
 #include <boost/filesystem.hpp>
@@ -191,6 +192,10 @@ public:
 
        std::string calculate_digest () const;
 
+       virtual bool can_be_played () const {
+               return true;
+       }
+
        /* ChangeType::PENDING and ChangeType::CANCELLED may be emitted from any thread; ChangeType::DONE always from GUI thread */
        boost::signals2::signal<void (ChangeType, std::weak_ptr<Content>, int, bool)> Change;