summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriel Manzur <ariel@okamstudio.com>2016-01-24 01:59:55 -0300
committerAriel Manzur <ariel@okamstudio.com>2016-01-31 20:23:23 -0300
commit5b68608b1032aab7bddc57cb7e2af29df5e222e3 (patch)
treecbb2288575ea5949966dc5f37a855b4eee519dc4
parent373268823182416de3e4f7231e6c4a68b1253a87 (diff)
checking for file?
-rw-r--r--drivers/theora/video_stream_theora.cpp3
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;