Always flush encoder output if using QSV / NVENC

NVENC at least does not like being shut down if there is still pending encoder output to be consumed. Normally output flushing is skipped when rendering preview for UI responsiveness.
master
Richard Stanway 2015-06-07 20:43:54 +02:00
parent 4ff40ef8a9
commit 00b8387500
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ void OBS::EncodeLoop()
CircularList<QWORD> bufferedTimes;
while(!bShutdownEncodeThread || (bufferedFrames && !bTestStream)) {
while (!bShutdownEncodeThread || (bufferedFrames && (!bTestStream || bUsingQSV))) {
if (!SleepToNS(sleepTargetTime += (frameTimeNS/2)))
no_sleep_counter++;
else