Runs.
[dcpomatic.git] / src / lib / content.cc
1 #include <boost/thread/mutex.hpp>
2 #include "content.h"
3 #include "util.h"
4
5 using std::string;
6 using boost::shared_ptr;
7
8 Content::Content (boost::filesystem::path f)
9         : _file (f)
10 {
11
12 }
13
14 void
15 Content::examine (shared_ptr<Film>, shared_ptr<Job>, bool)
16 {
17         string const d = md5_digest (_file);
18         boost::mutex::scoped_lock lm (_mutex);
19         _digest = d;
20 }