소스 검색

Fix VideoStreamPlayer seamless loop

今井きなみ 2 년 전
부모
커밋
270bc93b95
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      scene/gui/video_stream_player.cpp

+ 3 - 0
scene/gui/video_stream_player.cpp

@@ -281,6 +281,9 @@ void VideoStreamPlayer::play() {
 	set_process_internal(true);
 	last_audio_time = 0;
 
+	// We update the playback to render the first frame immediately.
+	playback->update(0);
+
 	if (!can_process()) {
 		_notification(NOTIFICATION_PAUSED);
 	}