diff --git a/editor/audio_stream_preview.cpp b/editor/audio_stream_preview.cpp index 6ae5ec43a93..6e6a7d7935f 100644 --- a/editor/audio_stream_preview.cpp +++ b/editor/audio_stream_preview.cpp @@ -169,7 +169,8 @@ Ref AudioStreamPreviewGenerator::generate_preview(const Ref< preview->preview->preview = maxmin; preview->preview->length = len_s; - preview->thread = Thread::create(_preview_thread, preview); + if (preview->playback.is_valid()) + preview->thread = Thread::create(_preview_thread, preview); return preview->preview; }