Attempt to fix VideoSource pause on RPi

This commit is contained in:
Krisjanis Rijnieks
2018-08-10 17:55:24 +02:00
parent 26d0ffc847
commit acf637a679
+4
View File
@@ -98,6 +98,10 @@ void VideoSource::stop(){
if(_omxPlayer->getCurrentFrame() >= _omxPlayer->getTotalNumFrames() - 1){
_omxPlayer->setPaused(true);
}
if((float)_omxPlayer->getMediaTime() >= (float)_omxPlayer->getDurationInSeconds() - 1.0f){
_omxPlayer->setPaused(true);
}
}
}
#endif