summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrancois Gouget <fgouget@codeweavers.com>2016-05-24 11:44:23 +0200
committerPavel Grunt <pgrunt@redhat.com>2016-05-25 17:02:10 +0200
commit0736283e97e7d5fee72d1f2d1109aee24236378f (patch)
tree5db92d048eb4436edf3e213c67638b33ad20d826 /src
parent2210a5c22027492677a6009ab82d99a400e10fb1 (diff)
streaming: Constify the video stream's dest and clip parameters
They are only supposed to be changed when receiving the relevant server message. Signed-off-by: Francois Gouget <fgouget@codeweavers.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/channel-display-priv.h2
-rw-r--r--src/channel-display.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/channel-display-priv.h b/src/channel-display-priv.h
index 94a90e6..3155015 100644
--- a/src/channel-display-priv.h
+++ b/src/channel-display-priv.h
@@ -103,7 +103,7 @@ struct display_stream {
/* from messages */
display_surface *surface;
- SpiceClip *clip;
+ const SpiceClip *clip;
QRegion region;
int have_region;
diff --git a/src/channel-display.c b/src/channel-display.c
index 3ee515b..a1ed493 100644
--- a/src/channel-display.c
+++ b/src/channel-display.c
@@ -1131,7 +1131,7 @@ static void display_handle_stream_create(SpiceChannel *channel, SpiceMsgIn *in)
}
}
-static SpiceRect *stream_get_dest(display_stream *st, SpiceMsgIn *frame_msg)
+static const SpiceRect *stream_get_dest(display_stream *st, SpiceMsgIn *frame_msg)
{
if (frame_msg == NULL ||
spice_msg_in_type(frame_msg) != SPICE_MSG_DISPLAY_STREAM_DATA_SIZED) {
@@ -1213,7 +1213,7 @@ void stream_display_frame(display_stream *st, SpiceMsgIn *frame_msg,
uint8_t* data)
{
int width, height;
- SpiceRect *dest;
+ const SpiceRect *dest;
int stride;
stream_get_dimensions(st, frame_msg, &width, &height);