mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-03 21:06:11 -04:00
The replay buffer and screenshot functions add a prefix to the output filename. The code in GetFormatString assumed the format string was the entire filename, and inserted the prefix at the beginning. This caused illegal paths such as "Screenshot /2021/05/22-35.mkv" to be created if the user had specified a path in the format string, resulting in lost files. This commit inserts the prefix before the last / character to ensure it only affects the filename portion of the format string. Fixes #4707
67 KiB
67 KiB