diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-12-15 09:17:32 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-12-15 09:17:32 -0300 |
commit | b12a2f456ccccae315426c7dd358bcec87112a0c (patch) | |
tree | 3017f2d5af49b85baa63703f29804b618953d350 /scene | |
parent | 4713bcccf3de5f8e0f577f29a67f38bfb8a99b57 (diff) |
-fixes to theora video ending sooner than expected, fixes #3066
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/video_player.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/gui/video_player.cpp b/scene/gui/video_player.cpp index 22b19f50b2..58683a07ad 100644 --- a/scene/gui/video_player.cpp +++ b/scene/gui/video_player.cpp @@ -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: { |