From: Steinar H. Gunderson Date: Sun, 9 Dec 2018 17:25:49 +0000 (+0100) Subject: Fix a hang when storing frame files. X-Git-Tag: 1.8.0~42 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=ff34ce0ad28ee369cd303a73d219bd5fed78247a Fix a hang when storing frame files. --- diff --git a/futatabi/main.cpp b/futatabi/main.cpp index f6d2ab1..7c9f49d 100644 --- a/futatabi/main.cpp +++ b/futatabi/main.cpp @@ -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); }