]> git.sesse.net Git - nageru/commitdiff
Remove the colons from the recording file names.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 4 Apr 2019 07:25:08 +0000 (09:25 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 4 Apr 2019 07:25:08 +0000 (09:25 +0200)
They cause problems for just too much software, including most players.

nageru/video_encoder.cpp

index 8dee6da8307d47814f650302ad6d6ded2e78398e..7e4f09f78cb2112a81c1d9b246d36c7d6a2e987b 100644 (file)
@@ -35,7 +35,7 @@ string generate_local_dump_filename(int frame)
        localtime_r(&now, &now_tm);
 
        char timestamp[64];
-       strftime(timestamp, sizeof(timestamp), "%F-%T%z", &now_tm);
+       strftime(timestamp, sizeof(timestamp), "%F-%H%M%S%z", &now_tm);
 
        // Use the frame number to disambiguate between two cuts starting
        // on the same second.