소스 검색

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;