diff options
author | Ariel Manzur <ariel@okamstudio.com> | 2016-01-24 01:59:55 -0300 |
---|---|---|
committer | Ariel Manzur <ariel@okamstudio.com> | 2016-01-31 20:23:23 -0300 |
commit | 5b68608b1032aab7bddc57cb7e2af29df5e222e3 (patch) | |
tree | cbb2288575ea5949966dc5f37a855b4eee519dc4 | |
parent | 373268823182416de3e4f7231e6c4a68b1253a87 (diff) |
checking for file?
-rw-r--r-- | drivers/theora/video_stream_theora.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/theora/video_stream_theora.cpp b/drivers/theora/video_stream_theora.cpp index 1d2e6b9dda..e577c3f932 100644 --- a/drivers/theora/video_stream_theora.cpp +++ b/drivers/theora/video_stream_theora.cpp @@ -489,6 +489,9 @@ Ref<Texture> VideoStreamPlaybackTheora::get_texture() { void VideoStreamPlaybackTheora::update(float p_delta) { + if (!file) + return; + if (!playing || paused) { //printf("not playing\n"); return; |