Do lots of the player processing with less copying.
[dcpomatic.git] / src / lib / writer.cc
index f4128e6c573d6b65e81480b699fdb8626e595ee0..60b2a47ab13b265fe1f5ca288ef576912db0ea12 100644 (file)
@@ -432,6 +432,11 @@ Writer::check_existing_picture_mxf_frame (FILE* mxf, int f, Eyes eyes)
 {
        /* Read the frame info as written */
        FILE* ifi = fopen_boost (_film->info_path (f, eyes), "r");
+       if (!ifi) {
+               _film->log()->log (String::compose ("Existing frame %1 has no info file", f));
+               return false;
+       }
+       
        libdcp::FrameInfo info (ifi);
        fclose (ifi);
        if (info.size == 0) {