mirror of
https://github.com/kr15h/ofxPiMapper.git
synced 2026-06-16 12:31:49 +02:00
Attempt to fix VideoSource pause on RPi
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user