- updated code to protect against null pointers and uninitialized values and threading issues

This commit is contained in:
Mark Vejvoda
2013-02-04 08:30:43 +00:00
parent d02f91d2e0
commit f87b8b6ee2
35 changed files with 332 additions and 188 deletions

View File

@@ -1413,7 +1413,12 @@ bool VideoPlayer::playFrame(bool swapBuffers) {
}
}
return ctxPtr->needToQuit;
if(ctxPtr != NULL) {
return ctxPtr->needToQuit;
}
else {
return false;
}
}
void VideoPlayer::RestartVideo() {