X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Ffilm.cc;h=4a26ded3d748968c9ebd4029043a31c37077678e;hp=9f766a749d656fcdac913d84c905eb02ce9fc457;hb=e25bf0c33f4085f6caa3d0d19a083399a422146a;hpb=2c5398adaea8bc56fe196144a9a233981657fba0 diff --git a/src/lib/film.cc b/src/lib/film.cc index 9f766a749..4a26ded3d 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -865,7 +865,7 @@ Film::set_isdcf_date_today () } boost::filesystem::path -Film::j2c_path (int f, Eyes e, bool t) const +Film::j2c_path (int reel, Frame frame, Eyes eyes, bool tmp) const { boost::filesystem::path p; p /= "j2c"; @@ -873,17 +873,17 @@ Film::j2c_path (int f, Eyes e, bool t) const SafeStringStream s; s.width (8); - s << setfill('0') << f; + s << setfill('0') << reel << "_" << frame; - if (e == EYES_LEFT) { + if (eyes == EYES_LEFT) { s << ".L"; - } else if (e == EYES_RIGHT) { + } else if (eyes == EYES_RIGHT) { s << ".R"; } s << ".j2c"; - if (t) { + if (tmp) { s << ".tmp"; }