]> git.sesse.net Git - nageru/blobdiff - futatabi/main.cpp
Fix a hang when storing frame files.
[nageru] / futatabi / main.cpp
index 58a131aa26c50e836b1b2ead40687f1f9553d57b..7c9f49db069c325fe05242dff0845b6e37b6e744 100644 (file)
@@ -20,14 +20,14 @@ extern "C" {
 }
 
 #include "clip_list.h"
-#include "context.h"
+#include "shared/context.h"
 #include "defs.h"
-#include "disk_space_estimator.h"
+#include "shared/disk_space_estimator.h"
 #include "shared/ffmpeg_raii.h"
 #include "flags.h"
 #include "frame_on_disk.h"
 #include "frame.pb.h"
-#include "httpd.h"
+#include "shared/httpd.h"
 #include "mainwindow.h"
 #include "player.h"
 #include "shared/post_to_main_thread.h"
@@ -169,7 +169,7 @@ FrameOnDisk write_frame(int stream_idx, int64_t pts, const uint8_t *data, size_t
 
                const char *basename = filename.c_str();
                while (strchr(basename, '/') != nullptr) {
-                       basename = strchr(basename, '/');
+                       basename = strchr(basename, '/') + 1;
                }
                db->store_frame_file(basename, size, frames_this_file);
        }