* [Qemu-devel] Fix build errors introduced by vnc jpeg changes
@ 2011-02-28 10:48 David Gibson
2011-02-28 11:15 ` Peter Maydell
0 siblings, 1 reply; 3+ messages in thread
From: David Gibson @ 2011-02-28 10:48 UTC (permalink / raw)
To: qemu-devel
The recent changes to handling of jpegs over tight vnc connections
cause build errors if qemu is configured with --disable-vnc-jpeg. The
patch below corrects the errors, by adding some left out #ifdefs.
Please apply.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
---
ui/vnc-enc-tight.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c
index 5933394..2522936 100644
--- a/ui/vnc-enc-tight.c
+++ b/ui/vnc-enc-tight.c
@@ -1536,8 +1536,10 @@ static int send_sub_rect(VncState *vs, int x, int y, int w, int h)
uint32_t bg = 0, fg = 0;
int colors;
int ret = 0;
+#ifdef CONFIG_VNC_JPEG
bool force_jpeg = false;
bool allow_jpeg = true;
+#endif
vnc_framebuffer_update(vs, x, y, w, h, vs->tight.type);
@@ -1711,6 +1713,7 @@ static int tight_send_framebuffer_update(VncState *vs, int x, int y,
vs->tight.pixel24 = false;
}
+#ifdef CONFIG_VNC_JPEG
if (vs->tight.quality != (uint8_t)-1) {
double freq = vnc_update_freq(vs, x, y, w, h);
@@ -1718,6 +1721,7 @@ static int tight_send_framebuffer_update(VncState *vs, int x, int y,
return send_rect_simple(vs, x, y, w, h, false);
}
}
+#endif
if (w * h < VNC_TIGHT_MIN_SPLIT_RECT_SIZE) {
return send_rect_simple(vs, x, y, w, h, true);
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Fix build errors introduced by vnc jpeg changes
2011-02-28 10:48 [Qemu-devel] Fix build errors introduced by vnc jpeg changes David Gibson
@ 2011-02-28 11:15 ` Peter Maydell
2011-02-28 12:03 ` David Gibson
0 siblings, 1 reply; 3+ messages in thread
From: Peter Maydell @ 2011-02-28 11:15 UTC (permalink / raw)
To: David Gibson; +Cc: qemu-devel
On 28 February 2011 10:48, David Gibson <david@gibson.dropbear.id.au> wrote:
> The recent changes to handling of jpegs over tight vnc connections
> cause build errors if qemu is configured with --disable-vnc-jpeg. The
> patch below corrects the errors, by adding some left out #ifdefs.
>
> Please apply.
>
> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This is already fixed in master:
http://git.qemu.org/qemu.git/commit/?id=cf76a1ce8b7cf4b92429d67d3f4626a92b2d8a37
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Fix build errors introduced by vnc jpeg changes
2011-02-28 11:15 ` Peter Maydell
@ 2011-02-28 12:03 ` David Gibson
0 siblings, 0 replies; 3+ messages in thread
From: David Gibson @ 2011-02-28 12:03 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-devel
On Mon, Feb 28, 2011 at 11:15:51AM +0000, Peter Maydell wrote:
> On 28 February 2011 10:48, David Gibson <david@gibson.dropbear.id.au> wrote:
> > The recent changes to handling of jpegs over tight vnc connections
> > cause build errors if qemu is configured with --disable-vnc-jpeg. The
> > patch below corrects the errors, by adding some left out #ifdefs.
> >
> > Please apply.
> >
> > Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
>
> This is already fixed in master:
>
> http://git.qemu.org/qemu.git/commit/?id=cf76a1ce8b7cf4b92429d67d3f4626a92b2d8a37
Ah, sorry. Sent that mail several days ago, but it got stuck due to a
mail configuration error. Forgot to recheck when I unstuck it.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-02-28 12:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28 10:48 [Qemu-devel] Fix build errors introduced by vnc jpeg changes David Gibson
2011-02-28 11:15 ` Peter Maydell
2011-02-28 12:03 ` David Gibson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).