From: Steinar H. Gunderson Date: Sat, 20 Oct 2018 17:41:51 +0000 (+0200) Subject: Fix loading of existing frames with -d. X-Git-Tag: 1.8.0~76^2~53 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=30651465e32548ae8be21b6b45b709a449abf2e1;p=nageru Fix loading of existing frames with -d. --- diff --git a/main.cpp b/main.cpp index 04a7d54..6cd4741 100644 --- a/main.cpp +++ b/main.cpp @@ -146,7 +146,8 @@ int main(int argc, char **argv) void load_existing_frames() { - DIR *dir = opendir("frames/"); + string frame_dir = global_flags.working_directory + "/frames"; + DIR *dir = opendir(frame_dir.c_str()); if (dir == nullptr) { perror("frames/"); start_pts = 0;