mirror of
https://github.com/glest/glest-source.git
synced 2025-09-30 01:18:58 +02:00
- updated code to protect against null pointers and uninitialized values and threading issues
This commit is contained in:
@@ -1413,7 +1413,12 @@ bool VideoPlayer::playFrame(bool swapBuffers) {
|
||||
}
|
||||
}
|
||||
|
||||
return ctxPtr->needToQuit;
|
||||
if(ctxPtr != NULL) {
|
||||
return ctxPtr->needToQuit;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void VideoPlayer::RestartVideo() {
|
||||
|
Reference in New Issue
Block a user