summaryrefslogtreecommitdiff
path: root/server/dcc-send.c
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2016-02-08 19:57:58 +0000
committerFrediano Ziglio <fziglio@redhat.com>2016-02-11 23:51:46 +0000
commitfbdea0fa790ba3f836fe0c6d60441b716c7d0bd3 (patch)
tree94eaed791f1a01280973e08988e864c45c3c60b6 /server/dcc-send.c
parent79e50495fe53a34cdbf2e524da2dcac4e11ee811 (diff)
CommonChannel: hold a reference to QXLInstance instead of RedWorker
CommonChannel does not need to know about RedWorker. This reduce a bit dependencies between objects. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
Diffstat (limited to 'server/dcc-send.c')
-rw-r--r--server/dcc-send.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/dcc-send.c b/server/dcc-send.c
index 3af5760f..ab076345 100644
--- a/server/dcc-send.c
+++ b/server/dcc-send.c
@@ -2305,8 +2305,7 @@ static void marshall_gl_scanout(RedChannelClient *rcc,
{
DisplayChannelClient *dcc = RCC_TO_DCC(rcc);
DisplayChannel *display_channel = DCC_TO_DC(dcc);
- RedWorker *worker = display_channel->common.worker;
- QXLInstance* qxl = red_worker_get_qxl(worker);
+ QXLInstance* qxl = display_channel->common.qxl;
SpiceMsgDisplayGlScanoutUnix *so = &qxl->st->scanout;
pthread_mutex_lock(&qxl->st->scanout_mutex);