]> git.sesse.net Git - nageru/commitdiff
Fix loading of existing frames with -d.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Oct 2018 17:41:51 +0000 (19:41 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Oct 2018 17:41:51 +0000 (19:41 +0200)
main.cpp

index 04a7d54ddc43f75491c5edd8175aa7a5e0c86a5a..6cd4741225b95c18b94764782147dfa00adcae8b 100644 (file)
--- 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;