NDI output
This commit is contained in:
@@ -162,25 +162,42 @@ private:
|
||||
return;
|
||||
}
|
||||
|
||||
Log("app", "Starting video output thread.");
|
||||
if (!mOutputThread.Start())
|
||||
if (mOutput->RequiresPreroll())
|
||||
{
|
||||
DisableVideoOutput("Video output thread failed to start.");
|
||||
return;
|
||||
}
|
||||
Log("app", "Starting video output thread.");
|
||||
if (!mOutputThread.Start())
|
||||
{
|
||||
DisableVideoOutput("Video output thread failed to start.");
|
||||
return;
|
||||
}
|
||||
|
||||
Log("app", "Waiting for video output preroll frames.");
|
||||
if (!WaitForPreroll())
|
||||
{
|
||||
DisableVideoOutput("Timed out waiting for DeckLink preroll frames.");
|
||||
return;
|
||||
}
|
||||
Log("app", "Waiting for video output preroll frames.");
|
||||
if (!WaitForPreroll())
|
||||
{
|
||||
DisableVideoOutput("Timed out waiting for video output preroll frames.");
|
||||
return;
|
||||
}
|
||||
|
||||
Log("app", "Starting scheduled video playback.");
|
||||
if (!mOutput->StartScheduledPlayback(outputError))
|
||||
Log("app", "Starting scheduled video playback.");
|
||||
if (!mOutput->StartScheduledPlayback(outputError))
|
||||
{
|
||||
DisableVideoOutput("Scheduled video playback failed: " + outputError);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DisableVideoOutput("Scheduled video playback failed: " + outputError);
|
||||
return;
|
||||
Log("app", "Starting video output backend without preroll.");
|
||||
if (!mOutput->StartScheduledPlayback(outputError))
|
||||
{
|
||||
DisableVideoOutput("Video output failed to start: " + outputError);
|
||||
return;
|
||||
}
|
||||
if (!mOutputThread.Start())
|
||||
{
|
||||
DisableVideoOutput("Video output thread failed to start.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
mVideoOutputEnabled = true;
|
||||
|
||||
Reference in New Issue
Block a user