return true;
} catch (dcp::MXFFileError& e) {
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
}
if (j.code() == dcp::VerificationNote::EMPTY_ASSET_PATH) {
LOG_WARNING("Empty path in ASSETMAP of %1", i.string());
} else {
- boost::throw_exception(dcp::DCPReadError(dcp::note_to_string(j)));
+ boost::throw_exception(dcp::ReadError(dcp::note_to_string(j)));
}
}
}
list<DCPTimePeriod> reel_list;
try {
reel_list = reels (film);
- } catch (dcp::DCPReadError &) {
+ } catch (dcp::ReadError &) {
/* We couldn't read the DCP; it's probably missing */
return false;
} catch (dcp::KDMDecryptionError &) {
shared_ptr<DCPDecoder> decoder;
try {
decoder.reset (new DCPDecoder (film, shared_from_this(), false, film->tolerant(), shared_ptr<DCPDecoder>()));
- } catch (dcp::DCPReadError &) {
+ } catch (dcp::ReadError &) {
/* We couldn't read the DCP, so it's probably missing */
return false;
} catch (DCPError &) {
shared_ptr<DCPDecoder> decoder;
try {
decoder.reset (new DCPDecoder (film, shared_from_this(), false, film->tolerant(), shared_ptr<DCPDecoder>()));
- } catch (dcp::DCPReadError &) {
+ } catch (dcp::ReadError &) {
/* We couldn't read the DCP, so it's probably missing */
return false;
} catch (dcp::KDMDecryptionError &) {
i->main_subtitle()->asset()->subtitles ();
}
}
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
_kdm_valid = false;
} catch (dcp::MiscError& e) {
_kdm_valid = false;
fclose (f);
try {
_video_size = dcp::decompress_j2k (buffer, size, 0)->size ();
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
delete[] buffer;
throw DecodeError (String::compose (_("Could not decode JPEG2000 file %1 (%2)"), path, e.what ()));
}
set_progress (1);
set_state (FINISHED_ERROR);
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
set_error (e.message(), e.detail().get_value_or(""));
set_progress (1);
list<dcp::VerificationNote> notes;
dcp.read (¬es);
if (!notes.empty()) {
- throw dcp::DCPReadError(dcp::note_to_string(notes.front()));
+ throw dcp::ReadError(dcp::note_to_string(notes.front()));
}
cpl_id = dcp.cpls().front()->id();
return true;
} catch (dcp::MXFFileError& e) {
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
}
return true;
} catch (dcp::MXFFileError& e) {
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
}
mono.reset (new dcp::MonoPictureAsset (_content->path(0)));
} catch (dcp::MXFFileError& e) {
/* maybe it's stereo */
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
/* maybe it's stereo */
}
if (!mono) {
throw;
}
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
if (!mono) {
throw;
}
_asset.reset (new dcp::MonoPictureAsset (content->path(0)));
} catch (dcp::MXFFileError& e) {
/* maybe it's stereo */
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
/* maybe it's stereo */
}
#ifndef DCPOMATIC_VARIANT_SWAROOP
Config::instance()->add_to_player_history (dir);
#endif
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
error_dialog (this, wxString::Format(_("Could not load a DCP from %s"), std_to_wx(dir.string())), std_to_wx(e.what()));
}
}
);
item->Check (dcp->cpl() && dcp->cpl() == i->id());
}
- } catch (dcp::DCPReadError &) {
+ } catch (dcp::ReadError &) {
/* The DCP is probably missing */
} catch (dcp::KDMDecryptionError &) {
/* We have an incorrect KDM */
}
} catch (boost::filesystem::filesystem_error& e) {
/* Never mind */
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
/* Never mind */
}
}