SHA256
Refactor
This commit is contained in:
1 parent
4befa634b5
commit
2067a5c7f2
3 files changed
+15
-9
No files matched your search
@@ -50,9 +50,9 @@ namespace ADOFAIRenderer.Component
|
||||
|
||||
public static SortedList<int, byte[]> ImageQueue = new SortedList<int, byte[]>();
|
||||
public static Thread? RenderThread;
|
||||
public static int PassCount = 0;
|
||||
public static bool EndRequested = false;
|
||||
public static bool EndSuccessful = false;
|
||||
public static int PassCount;
|
||||
public static bool EndRequested;
|
||||
public static bool EndSuccessful;
|
||||
public static int WonFrame = -1;
|
||||
|
||||
private static bool _renderSetup;
|
||||
@@ -219,7 +219,7 @@ namespace ADOFAIRenderer.Component
|
||||
float bitrate = Configuration.Bitrate;
|
||||
var codecStr = Configuration.Codec;
|
||||
|
||||
VideoFFmpeg.Codec selectedCodec = VideoFFmpeg.Codec.H264_Default;
|
||||
var selectedCodec = VideoFFmpeg.Codec.H264_Default;
|
||||
if (Enum.TryParse<VideoFFmpeg.Codec>(codecStr, true, out var parsedCodec))
|
||||
{
|
||||
selectedCodec = parsedCodec;
|
||||
@@ -320,7 +320,7 @@ namespace ADOFAIRenderer.Component
|
||||
Destroy(_debugMonitorObj);
|
||||
_debugMonitorObj = null;
|
||||
}
|
||||
if (RenderThread != null && RenderThread.IsAlive)
|
||||
if (RenderThread is { IsAlive: true })
|
||||
{
|
||||
RenderThread.Join(2000);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user