diff --git a/rtc_tools/video_replay.cc b/rtc_tools/video_replay.cc index 1a7bfadbca..6eb793d7f5 100644 --- a/rtc_tools/video_replay.cc +++ b/rtc_tools/video_replay.cc @@ -385,12 +385,10 @@ class RtpReplayer final { // Wait for streams creation. sync_event.Wait(/*give_up_after=*/TimeDelta::Seconds(10)); - if (stream_state == nullptr || rtp_reader == nullptr) { - return; + if (stream_state != nullptr && rtp_reader != nullptr) { + ReplayPackets(call.get(), rtp_reader.get(), worker_thread.get()); } - ReplayPackets(call.get(), rtp_reader.get(), worker_thread.get()); - // Destruction of streams and the call must happen on the same thread as // their creation. worker_thread->PostTask([&]() {