projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcfaa5e
)
Catch case where fopen_boost returns 0 in fake_write.
author
Carl Hetherington
<cth@carlh.net>
Wed, 15 Apr 2015 15:43:31 +0000
(16:43 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 15 Apr 2015 15:43:31 +0000
(16:43 +0100)
src/lib/writer.cc
patch
|
blob
|
history
diff --git
a/src/lib/writer.cc
b/src/lib/writer.cc
index f126d5b62c010958ecc328996a4d14eec2c99774..909b1e4484d1c19b1cbc56b751131a098215534a 100644
(file)
--- a/
src/lib/writer.cc
+++ b/
src/lib/writer.cc
@@
-190,6
+190,9
@@
Writer::fake_write (int frame, Eyes eyes)
}
FILE* ifi = fopen_boost (_film->info_path (frame, eyes), "r");
+ if (!ifi) {
+ throw ReadFileError (_film->info_path (frame, eyes));
+ }
dcp::FrameInfo info (ifi);
fclose (ifi);