瀏覽代碼

checking for file?

Ariel Manzur 9 年之前
父節點
當前提交
5b68608b10
共有 1 個文件被更改,包括 3 次插入0 次删除
  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;