From 60f7aa1ceb4a57ac7bfbc8386c7344d26416f65e Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Wed, 8 Mar 2023 19:28:10 +0100 Subject: [PATCH] webrtc: ensure that keyframe is requested at start of stream --- output/webrtc/webrtc.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/output/webrtc/webrtc.cc b/output/webrtc/webrtc.cc index bbfc350..d40b505 100644 --- a/output/webrtc/webrtc.cc +++ b/output/webrtc/webrtc.cc @@ -129,14 +129,14 @@ public: } public: - char *name; + char *name = NULL; std::string id; std::shared_ptr pc; std::shared_ptr video; std::mutex lock; std::condition_variable wait_for_complete; - bool had_key_frame; - bool requested_key_frame; + bool had_key_frame = false; + bool requested_key_frame = false; }; std::shared_ptr findClient(std::string id)