Skip to content

Commit

Permalink
fix: Incorrect error message when creating clips with re-encode (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
Segergren authored Oct 8, 2024
1 parent ed0fd53 commit f0467b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Utils/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ public static string CreateClip(string game, string videoPath, ClipSegment[] cli
Logger.WriteLine("Output: " + output);
verifyClipProcess.WaitForExit();

if (!File.Exists(outputFile) || string.IsNullOrWhiteSpace(output)) {
if (!File.Exists(outputFile) || !string.IsNullOrWhiteSpace(output)) {
WebMessage.DestroyToast(uuid);
Logger.WriteLine(string.Format("FFMPEG error. Failed to create clip: {0}", outputFile));
File.Delete(outputFile);
Expand Down

0 comments on commit f0467b1

Please sign in to comment.