#include "i18n.h"
using std::string;
-using std::set;
using std::list;
using std::cout;
using std::vector;
return;
}
- job->sub (_("Computing digest"));
+ if (job) {
+ job->sub (_("Computing digest"));
+ }
boost::mutex::scoped_lock lm (_mutex);
vector<boost::filesystem::path> p = _paths;
string
Content::technical_summary () const
{
- return String::compose ("%1 %2 %3", path_summary(), digest(), position().seconds());
+ return String::compose ("%1 %2 %3", path_summary(), digest().get_value_or("X"), position().seconds());
}
DCPTime
{
SafeStringStream s;
- s << Content::digest()
+ s << Content::digest().get_value_or("X")
<< "_" << position().get()
<< "_" << trim_start().get()
<< "_" << trim_end().get();
{
/* XXX: should handle multiple paths more gracefully */
- assert (number_of_paths ());
+ DCPOMATIC_ASSERT (number_of_paths ());
string s = path(0).filename().string ();
if (number_of_paths() > 1) {