[Spice-devel] [PATCH v2 spice 03/11] Update the spice-common submodule
Yonit Halperin
yhalperi at redhat.com
Tue Apr 17 03:12:28 PDT 2012
spice-common changes: STREAM_DATA_SIZED message was added in order to support
video streams with frames that their size is different from the initial size
that the stream was created with.
This patch also includes server and client adjustments to the new
SpiceMsgDisplayStreamData.
---
client/display_channel.cpp | 6 ++++--
server/red_worker.c | 4 ++--
spice-common | 2 +-
3 files changed, 7 insertions(+), 5 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)
diff --git a/server/red_worker.c b/server/red_worker.c
index 99a8948..34e6a04 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -8063,8 +8063,8 @@ static inline int red_marshall_stream_data(RedChannelClient *rcc,
SpiceMsgDisplayStreamData stream_data;
- stream_data.id = stream - worker->streams_buf;
- stream_data.multi_media_time = drawable->red_drawable->mm_time;
+ stream_data.base.id = stream - worker->streams_buf;
+ stream_data.base.multi_media_time = drawable->red_drawable->mm_time;
stream_data.data_size = n;
spice_marshall_msg_display_stream_data(base_marshaller, &stream_data);
spice_marshaller_add_ref(base_marshaller,
diff --git a/spice-common b/spice-common
index 1b41d15..005f433 160000
--- a/spice-common
+++ b/spice-common
@@ -1 +1 @@
-Subproject commit 1b41d15a99dfcddb99975d17cfbcd61d8870a887
+Subproject commit 005f433769e90a4be32302cc90aca3d34919f9d5
--
1.7.7.6
More information about the Spice-devel
mailing list