- bugfix for looping
This commit is contained in:
parent
c33c1826ae
commit
5d72c3f72b
|
@ -1413,18 +1413,18 @@ bool VideoPlayer::playFrame(bool swapBuffers) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoPlayer::RestartVideo() {
|
void VideoPlayer::RestartVideo() {
|
||||||
printf("Restart video\n");
|
//printf("Restart video\n");
|
||||||
|
|
||||||
this->stop = false;
|
//this->stop = false;
|
||||||
this->finished = false;
|
//this->finished = false;
|
||||||
ctxPtr->started = true;
|
//ctxPtr->started = true;
|
||||||
ctxPtr->error = false;
|
//ctxPtr->error = false;
|
||||||
ctxPtr->stopped = false;
|
//ctxPtr->stopped = false;
|
||||||
ctxPtr->end_of_media = false;
|
//ctxPtr->end_of_media = false;
|
||||||
ctxPtr->isPlaying = true;
|
//ctxPtr->isPlaying = true;
|
||||||
ctxPtr->needToQuit = false;
|
//ctxPtr->needToQuit = false;
|
||||||
|
|
||||||
return;
|
//return;
|
||||||
|
|
||||||
this->closePlayer();
|
this->closePlayer();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user