Skip to content

Commit 735ca5a

Browse files
committed
VideoEncoder: Fix MergeSegments() called twice on encoding stop
1 parent 7c045e7 commit 735ca5a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Runtime/Scripts/BH_VideoEncoder.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public string StopEncoding()
182182
return mergedFilePath;
183183
}
184184

185-
private string SendStopRequestAndWait()
185+
private void SendStopRequestAndWait()
186186
{
187187
if (ffmpegProcess != null && !ffmpegProcess.HasExited)
188188
{
@@ -203,8 +203,6 @@ private string SendStopRequestAndWait()
203203
UnityEngine.Debug.LogError("Timeout while waiting for the encoding thread to stop.");
204204
}
205205
}
206-
207-
return MergeSegments();
208206
}
209207

210208
private string MergeSegments()

0 commit comments

Comments
 (0)