[Spice-devel] [PATCH spice 04/11] client: handle the new SpiceMsgDisplayStreamData (common/messages.h)
Yonit Halperin
yhalperi at redhat.com
Sun Apr 8 08:43:13 PDT 2012
SpiceMsgDisplayStreamData now contains SpiceStreamDataHeader,
which is shared with SpiceMsgDisplayStreamDataSized.
Signed-off-by: Yonit Halperin <yhalperi at redhat.com>
---
client/display_channel.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/client/display_channel.cpp b/client/display_channel.cpp
index ebeacd2..17bdf6a 100644
--- a/client/display_channel.cpp
+++ b/client/display_channel.cpp
@@ -1419,7 +1419,7 @@ void DisplayChannel::handle_stream_data(RedPeer::InMessage* message)
SpiceMsgDisplayStreamData* stream_data = (SpiceMsgDisplayStreamData*)message->data();
VideoStream* stream;
- if (stream_data->id >= _streams.size() || !(stream = _streams[stream_data->id])) {
+ if (stream_data->base.id >= _streams.size() || !(stream = _streams[stream_data->base.id])) {
THROW("invalid stream");
}
@@ -1427,7 +1427,9 @@ void DisplayChannel::handle_stream_data(RedPeer::InMessage* message)
THROW("access violation");
}
- stream->push_data(stream_data->multi_media_time, stream_data->data_size, stream_data->data);
+ stream->push_data(stream_data->base.multi_media_time,
+ stream_data->data_size,
+ stream_data->data);
}
void DisplayChannel::handle_stream_clip(RedPeer::InMessage* message)
--
1.7.7.6
More information about the Spice-devel
mailing list