Преглед на файлове

UI: Fix replay buffer with fragmented formats

derrod преди 2 години
родител
ревизия
61efa3cbeb
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      UI/window-basic-main-outputs.cpp

+ 5 - 0
UI/window-basic-main-outputs.cpp

@@ -2334,6 +2334,11 @@ bool AdvancedOutput::StartReplayBuffer()
 		rbTime = config_get_int(main->Config(), "AdvOut", "RecRBTime");
 		rbTime = config_get_int(main->Config(), "AdvOut", "RecRBTime");
 		rbSize = config_get_int(main->Config(), "AdvOut", "RecRBSize");
 		rbSize = config_get_int(main->Config(), "AdvOut", "RecRBSize");
 
 
+		/* Skip leading f for fragmented formats. */
+		if (strcmp(recFormat, "fmp4") == 0 ||
+		    strcmp(recFormat, "fmov") == 0)
+			++recFormat;
+
 		string f = GetFormatString(filenameFormat, rbPrefix, rbSuffix);
 		string f = GetFormatString(filenameFormat, rbPrefix, rbSuffix);
 		string strPath = GetOutputFilename(
 		string strPath = GetOutputFilename(
 			path, recFormat, noSpace, overwriteIfExists, f.c_str());
 			path, recFormat, noSpace, overwriteIfExists, f.c_str());