webrtc: ensure that keyframe is requested at start of stream

This commit is contained in:
Kamil Trzcinski 2023-03-08 19:28:10 +01:00
parent 1c806508f4
commit 60f7aa1ceb

View File

@ -129,14 +129,14 @@ public:
} }
public: public:
char *name; char *name = NULL;
std::string id; std::string id;
std::shared_ptr<rtc::PeerConnection> pc; std::shared_ptr<rtc::PeerConnection> pc;
std::shared_ptr<ClientTrackData> video; std::shared_ptr<ClientTrackData> video;
std::mutex lock; std::mutex lock;
std::condition_variable wait_for_complete; std::condition_variable wait_for_complete;
bool had_key_frame; bool had_key_frame = false;
bool requested_key_frame; bool requested_key_frame = false;
}; };
std::shared_ptr<Client> findClient(std::string id) std::shared_ptr<Client> findClient(std::string id)