Sanity pass
This commit is contained in:
@@ -297,7 +297,7 @@ void RenderEngine::ProcessRenderResetCommandsOnRenderThread()
|
|||||||
|
|
||||||
void RenderEngine::EnqueuePreviewPresentWake()
|
void RenderEngine::EnqueuePreviewPresentWake()
|
||||||
{
|
{
|
||||||
if (!mRenderThreadRunning || GetCurrentThreadId() == mRenderThreadId)
|
if (!mRenderThreadRunning)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bool shouldNotify = false;
|
bool shouldNotify = false;
|
||||||
@@ -461,10 +461,7 @@ bool RenderEngine::TryPresentPreview(bool force, unsigned previewFps, unsigned o
|
|||||||
if (mRenderThreadRunning)
|
if (mRenderThreadRunning)
|
||||||
{
|
{
|
||||||
mRenderCommandQueue.RequestPreviewPresent({ outputFrameWidth, outputFrameHeight });
|
mRenderCommandQueue.RequestPreviewPresent({ outputFrameWidth, outputFrameHeight });
|
||||||
if (GetCurrentThreadId() == mRenderThreadId)
|
EnqueuePreviewPresentWake();
|
||||||
ProcessPreviewPresentCommandsOnRenderThread();
|
|
||||||
else
|
|
||||||
EnqueuePreviewPresentWake();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -81,14 +81,10 @@ HRESULT PlayoutDelegate::ScheduledFrameCompleted(IDeckLinkVideoFrame* completedF
|
|||||||
switch (result)
|
switch (result)
|
||||||
{
|
{
|
||||||
case bmdOutputFrameDisplayedLate:
|
case bmdOutputFrameDisplayedLate:
|
||||||
OutputDebugStringA("ScheduledFrameCompleted() frame did not complete: Frame Displayed Late\n");
|
|
||||||
break;
|
|
||||||
case bmdOutputFrameDropped:
|
case bmdOutputFrameDropped:
|
||||||
OutputDebugStringA("ScheduledFrameCompleted() frame did not complete: Frame Dropped\n");
|
|
||||||
break;
|
|
||||||
case bmdOutputFrameCompleted:
|
case bmdOutputFrameCompleted:
|
||||||
case bmdOutputFrameFlushed:
|
case bmdOutputFrameFlushed:
|
||||||
// Don't log bmdOutputFrameFlushed result since it is expected when Stop() is called
|
// Late/drop counts are recorded by VideoBackend; keep this callback lean.
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
OutputDebugStringA("ScheduledFrameCompleted() frame did not complete: Unknown error\n");
|
OutputDebugStringA("ScheduledFrameCompleted() frame did not complete: Unknown error\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user