Skip to content

Instantly share code, notes, and snippets.

View thebongy's full-sized avatar
🎯
Focusing

Rishit Bansal thebongy

🎯
Focusing
View GitHub Profile
diff --git a/examples/peerconnection/client/conductor.cc b/examples/peerconnection/client/conductor.cc
index 965525abff..75027ca17e 100644
--- a/examples/peerconnection/client/conductor.cc
+++ b/examples/peerconnection/client/conductor.cc
@@ -297,6 +297,14 @@ void Conductor::OnPeerDisconnected(int id) {
}
void Conductor::OnMessageFromPeer(int peer_id, const std::string& message) {
+ if (!signaling_thread_.get()) {
+ signaling_thread_ = rtc::Thread::CreateWithSocketServer();
diff --git a/examples/peerconnection/client/linux/main_wnd.cc b/examples/peerconnection/client/linux/main_wnd.cc
index 2be75d8f8d..a1581c67d5 100644
--- a/examples/peerconnection/client/linux/main_wnd.cc
+++ b/examples/peerconnection/client/linux/main_wnd.cc
@@ -429,8 +429,10 @@ void GtkMainWnd::OnRedraw() {
width_ = remote_renderer->width();
height_ = remote_renderer->height();
- if (!draw_buffer_.get()) {
- draw_buffer_size_ = (width_ * height_ * 4) * 4;