[Spice-devel] [PATCH 0/2] Set the image compression reported by client

2015-04-17 Thread Javier Celaya
This patch set uses the SpiceImageCompress enum from spice-common instead of spice_image_compression_t, and handles the preferred image compression message from the client. Javier Celaya (2): Use image compress constants from spice-protocol Handle preferred image compression messages server/

[Spice-devel] [PATCH 1/3] Spice-session: Add preferred-compression property.

2015-04-17 Thread Javier Celaya
Also, depend on the spice-common commit that introduces the SpiceImageCompress enum. --- gtk/spice-session.c | 26 ++ spice-common| 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/gtk/spice-session.c b/gtk/spice-session.c index 020a70e..c83d239

[Spice-devel] [PATCH 1/2] Use image compress constants from spice-protocol

2015-04-17 Thread Javier Celaya
--- server/red_dispatcher.c | 2 +- server/red_dispatcher.h | 2 +- server/red_worker.c | 8 server/red_worker.h | 2 +- server/reds.c | 8 server/spice-server.h | 15 ++- spice-common| 2 +- 7 files changed, 14 insertions(+), 25

[Spice-devel] [PATCH 2/2] Handle preferred image compression messages

2015-04-17 Thread Javier Celaya
--- server/red_worker.c | 25 + 1 file changed, 25 insertions(+) diff --git a/server/red_worker.c b/server/red_worker.c index 29d6d6d..af2f1d6 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -10276,6 +10276,27 @@ static int display_channel_handle_stream_repo

[Spice-devel] [PATCH 2/3] Cmdline: Get the preferred-compression property

2015-04-17 Thread Javier Celaya
--- gtk/spice-cmdline.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/gtk/spice-cmdline.c b/gtk/spice-cmdline.c index 8619b57..dd64264 100644 --- a/gtk/spice-cmdline.c +++ b/gtk/spice-cmdline.c @@ -27,6 +27,34 @@ static char *port; static char *t

[Spice-devel] [PATCH 3/3] Display: Send a preferred compression message on init.

2015-04-17 Thread Javier Celaya
If the user prefers a specific compression algorithm, report it when setting up the display channel. --- gtk/channel-display.c | 8 1 file changed, 8 insertions(+) diff --git a/gtk/channel-display.c b/gtk/channel-display.c index efe2259..6f5fb5f 100644 --- a/gtk/channel-display.c +++ b/g

[Spice-devel] [PATCH 0/3] Report the preferred compression method to server

2015-04-17 Thread Javier Celaya
This patch allows the client to report its preferred image compression method to the server. It is read from command line and sent when the display channel is set up. Javier Celaya (3): Spice-session: Add preferred-compression property. Cmdline: Get the preferred-compression property Display

[Spice-devel] [PATCH] Proto: Add preferred compression message and constants.

2015-04-17 Thread Javier Celaya
When accessing a virtual desktop from different devices, some may have different image compression requirements, e.g. slow devices may prefer the faster LZ4 over GLZ. This message instructs the server to switch the image compression algorithm. This patch also promotes the SPICE_IMAGE_COMPRESS_* con

[Spice-devel] [PATCH] Update enums.h for preferred compression message

2015-04-17 Thread Javier Celaya
--- spice/enums.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/spice/enums.h b/spice/enums.h index 18e2f74..6a0ab0b 100644 --- a/spice/enums.h +++ b/spice/enums.h @@ -181,6 +181,19 @@ typedef enum SpiceImageType { SPICE_IMAGE_TYPE_ENUM_END } SpiceImageType; +typedef

Re: [Spice-devel] are there any new spice protocol document?

2015-04-17 Thread Christophe Fergeau
Hi, On Wed, Apr 15, 2015 at 04:41:41PM +0800, Dennis Chen wrote: > Hi, > I am studying spice protocol, and I found a document here : > http://www.spice-space.org/docs/spice_protocol.pdf, > which is draft and version is 1.0. > > Just want to know is this document new enough ( I try to write a prox

Re: [Spice-devel] Problem with remote-viewer and ALSA

2015-04-17 Thread Christophe Fergeau
Hi, Please don't top post... On Fri, Apr 17, 2015 at 10:20:26AM +, Hamid Mazrae Mollaie wrote: > On Fri, Apr 17, 2015 at 9:07 AM, Christophe Fergeau > wrote: > > What I'm aluding to is the --with-audio=gstreamer flag to spice-gtk's > > ./configure script > i download virt-viewer source code

Re: [Spice-devel] Problem with remote-viewer and ALSA

2015-04-17 Thread Hamid Mazrae Mollaie
tank you for response... i download virt-viewer source code from : http://virt-manager.org/download/sources/virt-viewer/virt-viewer-2.0.tar.gz and i run : ./configure --with-audio=gstream but result is : configure: WARNI

Re: [Spice-devel] Problem with remote-viewer and ALSA

2015-04-17 Thread Christophe Fergeau
On Fri, Apr 17, 2015 at 08:45:53AM +, Hamid Mazrae Mollaie wrote: > On Tue, Apr 14, 2015 at 8:42 AM, Christophe Fergeau > wrote: > > remote-viewer has a compile-time gstreamer backend, I guess you could > > rebuild it with that. > > > please tell me how can i do it? I don't know what distro y

Re: [Spice-devel] Problem with remote-viewer and ALSA

2015-04-17 Thread Hamid Mazrae Mollaie
please tell me how can i do it? On Tue, Apr 14, 2015 at 8:42 AM, Christophe Fergeau wrote: > Hey, > > On Tue, Apr 14, 2015 at 09:42:07AM +0430, Hamid Mazrae Mollaie wrote: > > Hi. > > In my computer, i config ALSA instead of PulseAudio. > > in mu case i will run a program+X with root user but Pu

Re: [Spice-devel] [spice-gtk PATCH v8 2/4] audio: spice-pulse implement async volume-info

2015-04-17 Thread Victor Toso
Hi, thanks for the review, On Thu, Apr 16, 2015 at 05:13:41PM +0200, Marc-André Lureau wrote: > Hi > > A few comments below. > > On Thu, Apr 16, 2015 at 4:42 PM, Victor Toso wrote: > > > In case of volume-sync between client and guest, we request volume-info > > from the availables streams and