Compare commits

..

2 commits

Author SHA1 Message Date
Victor Arvidsson
3655b5c784 Updated user-maunal with new instructions for subtitles.
Signed-off-by: Victor Arvidsson <victarv@gmail.com>
2024-10-24 19:05:51 +02:00
Victor Arvidsson
3d65231c42 Fixed small bug in replace_all.
Start_pos should of course be 0...

Signed-off-by: Victor Arvidsson <victarv@gmail.com>
2024-10-24 19:05:51 +02:00

View file

@ -47,7 +47,7 @@ static std::string video_time(int secs)
return format_string_std("%d:%02d:%02d.000,", hours, mins, secs);
}
void replace_all(std::string& str, const std::string& old_value, const std::string& new_value) {
static void replace_all(std::string &str, const std::string &old_value, const std::string &new_value) {
if (old_value.empty())
return;
size_t start_pos = 0;