From 5b68608b1032aab7bddc57cb7e2af29df5e222e3 Mon Sep 17 00:00:00 2001 From: Ariel Manzur Date: Sun, 24 Jan 2016 01:59:55 -0300 Subject: checking for file? --- drivers/theora/video_stream_theora.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 VideoStreamPlaybackTheora::get_texture() { void VideoStreamPlaybackTheora::update(float p_delta) { + if (!file) + return; + if (!playing || paused) { //printf("not playing\n"); return; -- cgit v1.2.3