summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-04-14 20:16:44 +0200
committerCarl Hetherington <cth@carlh.net>2020-04-14 20:16:44 +0200
commit4d6c8aaf0167cde3bb63e9014604243bdc47b1a1 (patch)
tree13aae09fb07326febeb401930718692b45df2cff /tools
parent314060f975dc9806f49ec8bbb1c11041a2ac111f (diff)
s/DCPReadError/ReadError/g
Diffstat (limited to 'tools')
-rw-r--r--tools/dcpdecryptmxf.cc2
-rw-r--r--tools/dcpinfo.cc2
-rw-r--r--tools/dcprecover.cc6
3 files changed, 5 insertions, 5 deletions
diff --git a/tools/dcpdecryptmxf.cc b/tools/dcpdecryptmxf.cc
index b5cf6b9b..5d04d0fc 100644
--- a/tools/dcpdecryptmxf.cc
+++ b/tools/dcpdecryptmxf.cc
@@ -149,7 +149,7 @@ main (int argc, char* argv[])
shared_ptr<const dcp::AtmosFrame> f = reader->get_frame (i);
writer->write (f->data(), f->size());
}
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
cerr << "Unknown MXF format.\n";
return EXIT_FAILURE;
}
diff --git a/tools/dcpinfo.cc b/tools/dcpinfo.cc
index 8773781e..3d5c2109 100644
--- a/tools/dcpinfo.cc
+++ b/tools/dcpinfo.cc
@@ -371,7 +371,7 @@ main (int argc, char* argv[])
} catch (FileError& e) {
cerr << "Could not read DCP " << argv[optind] << "; " << e.what() << "\n";
exit (EXIT_FAILURE);
- } catch (DCPReadError& e) {
+ } catch (ReadError& e) {
cerr << "Could not read DCP " << argv[optind] << "; " << e.what() << "\n";
exit (EXIT_FAILURE);
} catch (KDMDecryptionError& e) {
diff --git a/tools/dcprecover.cc b/tools/dcprecover.cc
index eb3b0d82..caf0e0fe 100644
--- a/tools/dcprecover.cc
+++ b/tools/dcprecover.cc
@@ -103,7 +103,7 @@ main (int argc, char* argv[])
list<dcp::VerificationNote> notes;
try {
dcp.read (&notes, true);
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
cout << "Error:" << e.what() << "\n";
}
@@ -118,7 +118,7 @@ main (int argc, char* argv[])
if (i->path().extension() == ".xml") {
try {
cpl.reset(new dcp::CPL(i->path()));
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
cout << "Error: " << e.what() << "\n";
} catch (xmlpp::parse_error& e) {
cout << "Error: " << e.what() << "\n";
@@ -145,7 +145,7 @@ main (int argc, char* argv[])
asset->hash (&progress);
cout << "100% \n";
assets.push_back (asset);
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::ReadError& e) {
cout << "Error: " << e.what() << "\n";
}
}