Index: remoting/client/simple_client.cc |
diff --git a/remoting/client/simple_client.cc b/remoting/client/simple_client.cc |
index 98074bf46c64bdcc9eda75826ebf71ab2555fad4..d1dd6e2478af3e4ff7bf0f54a532340217df7333 100644 |
--- a/remoting/client/simple_client.cc |
+++ b/remoting/client/simple_client.cc |
@@ -86,9 +86,13 @@ class SimpleHostEventCallback : public HostConnection::HostEventCallback { |
void HandleUpdateStreamPacketMessage(HostMessage* host_msg) { |
const UpdateStreamPacketMessage& msg = host_msg->update_stream_packet(); |
- std::cout << "UpdateStreamPacket (" << msg.header().x() |
- << ", " << msg.header().y() << ") [" |
- << msg.header().width() << " x " << msg.header().height() << "]" |
+ if (!msg.has_begin_rect()) |
+ return; |
+ |
+ std::cout << "UpdateStreamPacket (" << msg.begin_rect().x() |
+ << ", " << msg.begin_rect().y() << ") [" |
+ << msg.begin_rect().width() << " x " |
+ << msg.begin_rect().height() << "]" |
<< std::endl; |
} |