mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Made the video player shut down slightly faster under some circumstances.
This commit is contained in:
parent
1005dfcdb7
commit
36b7146d7f
|
@ -264,7 +264,11 @@ void VideoFFmpegComponent::frameProcessing()
|
|||
|
||||
while (mIsPlaying && !mPause && videoFilter && (!mAudioCodecContext || audioFilter)) {
|
||||
readFrames();
|
||||
if (!mIsPlaying)
|
||||
break;
|
||||
getProcessedFrames();
|
||||
if (!mIsPlaying)
|
||||
break;
|
||||
outputFrames();
|
||||
|
||||
// This 1 ms wait makes sure that the thread does not consume all available CPU cycles.
|
||||
|
|
Loading…
Reference in a new issue