From 30651465e32548ae8be21b6b45b709a449abf2e1 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 20 Oct 2018 19:41:51 +0200 Subject: [PATCH] Fix loading of existing frames with -d. --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.2