Explorar o código

checking for file?

Ariel Manzur %!s(int64=9) %!d(string=hai) anos
pai
achega
5b68608b10
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      drivers/theora/video_stream_theora.cpp

+ 3 - 0
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;