1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

-fixes to theora video ending sooner than expected, fixes #3066

This commit is contained in:
Juan Linietsky
2015-12-15 09:17:32 -03:00
parent 4713bcccf3
commit b12a2f456c
2 changed files with 13 additions and 5 deletions

View File

@@ -117,8 +117,9 @@ void VideoPlayer::_notification(int p_notification) {
case NOTIFICATION_ENTER_TREE: {
//set_idle_process(false); //don't annoy
if (stream.is_valid() && autoplay && !get_tree()->is_editor_hint())
if (stream.is_valid() && autoplay && !get_tree()->is_editor_hint()) {
play();
}
} break;
case NOTIFICATION_PROCESS: {