[Spice-devel] [PATCH libcacard 1/2] nss: report error on invalid db= argument

2016-03-02 Thread Marc-André Lureau
The db argument must end with " or \n. Found thanks to clang scan-build. Signed-off-by: Marc-André Lureau Reported-by: Miroslav Rezanina --- src/vcard_emul_nss.c | 4 1 file changed, 4 insertions(+) diff --git a/src/vcard_emul_nss.c b/src/vcard_emul_nss.c index 08a60c6..156a916 100644 --

[Spice-devel] [PATCH libcacard 2/2] vscclient: help scan-build

2016-03-02 Thread Marc-André Lureau
scan-build gives a false-positive error because it gets confused that optarg may be NULL. Help him by adding an assert. Signed-off-by: Marc-André Lureau Reported-by: Miroslav Rezanina --- src/vscclient.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vscclient.c b/src/vscclient.c ind

Re: [Spice-devel] [spice v10 04/27] server: Add a GStreamer 1.0 MJPEG video encoder and use it by default

2016-03-02 Thread Francois Gouget
On Wed, 2 Mar 2016, Christophe Fergeau wrote: [...] > > +if test "x$enable_gstreamer" != "xno"; then > > +SPICE_CHECK_GSTREAMER(GSTREAMER_1_0, 1.0, [gstreamer-1.0 > > gstreamer-base-1.0 gstreamer-app-1.0 gstreamer-video-1.0], > > +[enable_gstreamer="yes" > > + SPICE_CHECK_GSTRE

Re: [Spice-devel] [PATCH] Attempt to manage redirection in a way similar to Unix

2016-03-02 Thread Frediano Ziglio
> > This patch allows remote-viewer to redirect output/error streams to > files. > Also if launched from a console program (for instance from the command > prompt) you are able to see output from the console where you launch > the program. > This allow to launch the program with a syntax like >

Re: [Spice-devel] [PATCH] Add utility to help redirecting output from remote-viewer/virt-viewer

2016-03-02 Thread Frediano Ziglio
> > Frediano, > > On Tue, Mar 1, 2016 at 6:12 PM, Frediano Ziglio wrote: > > > >> > >> Hi > >> > >> - Original Message - > >> > These utility use some trick to use console even if they are GUI > >> > application (not supposed to have a console by default). > >> > This make output redirec

[Spice-devel] [PATCH] Attempt to manage redirection in a way similar to Unix

2016-03-02 Thread Frediano Ziglio
This patch allows remote-viewer to redirect output/error streams to files. Also if launched from a console program (for instance from the command prompt) you are able to see output from the console where you launch the program. This allow to launch the program with a syntax like > remote-viewer.e

Re: [Spice-devel] [spice v10 04/27] server: Add a GStreamer 1.0 MJPEG video encoder and use it by default

2016-03-02 Thread Christophe Fergeau
Hey, Mostly looks good, a few comments/questions below. On Tue, Mar 01, 2016 at 04:50:57PM +0100, Francois Gouget wrote: > This introduces a pared down GStreamer-based video encoder to serve as > the basis for later enhancements. > In this form the new encoder supports both regular and sized stre

Re: [Spice-devel] [spice v10 02/27] server: Store the opaque pointer in VideoEncoderRateControlCbs

2016-03-02 Thread Christophe Fergeau
I believe this was already reviewed separately, in a way it's odd to store instance data along with vfunc (ie class) data, but why not, makes more sense this way indeed. Acked-by: Christophe Fergeau On Tue, Mar 01, 2016 at 04:50:32PM +0100, Francois Gouget wrote: > It has the same lifetime as th

Re: [Spice-devel] [PATCH] Add utility to help redirecting output from remote-viewer/virt-viewer

2016-03-02 Thread Fabiano Fidêncio
Frediano, On Tue, Mar 1, 2016 at 6:12 PM, Frediano Ziglio wrote: > >> >> Hi >> >> - Original Message - >> > These utility use some trick to use console even if they are GUI >> > application (not supposed to have a console by default). >> > This make output redirection harder as output by

Re: [Spice-devel] [spice v10 03/27] server: Enable adding alternative MJPEG video encoders

2016-03-02 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Tue, Mar 01, 2016 at 04:50:45PM +0100, Francois Gouget wrote: > This replaces the original mjpeg_encoder API with a VideoEncoder base > class which can be reimplemented by other encoders. > This also renames the members and enums from mjpeg_* to video_*. > > Sign

Re: [Spice-devel] [PATCH 1/2] server: Remove the width and height parameters of encode_frame()

2016-03-02 Thread Victor Toso
Hi, Small fixes to my last email :) On Wed, Mar 02, 2016 at 04:14:09PM +0100, Victor Toso wrote: > I did get what you mean here, are you referring to > drawable->red_drawable->u.copy.src_area ? * s/did/did not/ > With and without those two patches, following bug happens: > https://bugs.freedesk

Re: [Spice-devel] [PATCH 1/2] server: Remove the width and height parameters of encode_frame()

2016-03-02 Thread Victor Toso
Hi, On Sat, Feb 27, 2016 at 01:53:16PM -0500, Frediano Ziglio wrote: > > Hi, > > > > On Fri, Feb 26, 2016 at 10:03:40PM +0100, Victor Toso wrote: > > > Hi, > > > > > > On Wed, Feb 24, 2016 at 06:30:34PM +0100, Francois Gouget wrote: > > > > They always match the size of the source bitmap area: >

Re: [Spice-devel] [PATCH 3/3] make allocation fixed instead of variable

2016-03-02 Thread Frediano Ziglio
> > On Tue, Feb 23, 2016 at 01:57:59PM -0600, Jonathon Jongsma wrote: > > > > I'm a bit ambivalent about this change. Although it may generate better > > code, I > > think that it makes the code slightly more difficult to read. I'd almost > > prefer > > a #define to the enum solution. But I guess

Re: [Spice-devel] [NSIS] packaging: bump version to 4.0

2016-03-02 Thread Christophe Fergeau
On Wed, Mar 02, 2016 at 04:59:38PM +0200, Yedidyah Bar David wrote: > On Wed, Mar 2, 2016 at 4:47 PM, Christophe Fergeau > wrote: > > Hey, > > > > On Wed, Feb 10, 2016 at 12:16:59PM +0200, Yedidyah Bar David wrote: > >> From: Sandro Bonazzola > >> > >> Change-Id: I1bc61dbbaa39a6e0d5d5866065d6c12

Re: [Spice-devel] [NSIS] packaging: bump version to 4.0

2016-03-02 Thread Yedidyah Bar David
On Wed, Mar 2, 2016 at 4:47 PM, Christophe Fergeau wrote: > Hey, > > On Wed, Feb 10, 2016 at 12:16:59PM +0200, Yedidyah Bar David wrote: >> From: Sandro Bonazzola >> >> Change-Id: I1bc61dbbaa39a6e0d5d5866065d6c12c5af51bf7 >> Signed-off-by: Sandro Bonazzola >> --- >> ovirt-guest-tools-iso.spec.i

Re: [Spice-devel] [NSIS] packaging: bump version to 4.0

2016-03-02 Thread Christophe Fergeau
Hey, On Wed, Feb 10, 2016 at 12:16:59PM +0200, Yedidyah Bar David wrote: > From: Sandro Bonazzola > > Change-Id: I1bc61dbbaa39a6e0d5d5866065d6c12c5af51bf7 > Signed-off-by: Sandro Bonazzola > --- > ovirt-guest-tools-iso.spec.in | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >

Re: [Spice-devel] [PATCH 3/3] make allocation fixed instead of variable

2016-03-02 Thread Christophe Fergeau
On Tue, Feb 23, 2016 at 01:57:59PM -0600, Jonathon Jongsma wrote: > > I'm a bit ambivalent about this change. Although it may generate better code, > I > think that it makes the code slightly more difficult to read. I'd almost > prefer > a #define to the enum solution. But I guess I don't care t

[Spice-devel] [PATCH] vnc: send cursor when a new client is connecting

2016-03-02 Thread Frediano Ziglio
If you have hardware cursor and you are reconnecting the VNC client you need to send the cursor. Failing to do so make the cursor invisible till is changed. Signed-off-by: Frediano Ziglio --- ui/vnc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/vnc.c b/ui/vnc.c index ce4c669..825e6

Re: [Spice-devel] [spice v10 10/27] server: Make the RedDrawable refcount thread-safe

2016-03-02 Thread Francois Gouget
On Wed, 2 Mar 2016, Frediano Ziglio wrote: > > > > Signed-off-by: Francois Gouget > > --- > > > > In theory this could be needed by the next patch. > > > > Are you saying that now compression is done in another thread? Nothing has changed with regards to threading. My understanding is that

Re: [Spice-devel] Hotkeys are disable when use spice-usbredir-redirect-on-connect option

2016-03-02 Thread Christophe Fergeau
Hey, On Wed, Feb 17, 2016 at 01:54:48PM +0330, Hamid Mazrae Mollaie wrote: > Hi, > Tank you for replay. > yes, my mouse and keyboard are usb and redirect to vm... and all pressed > key sent to vm > all hotkeys and Ctrl+Alt+F[n] does not work for example. but if i avoid > from spice-usbredir-redire

Re: [Spice-devel] How to adapt keymaps for spice-html5

2016-03-02 Thread Christophe Fergeau
Hey, On Fri, Feb 26, 2016 at 11:53:25PM +, Eric Grammatico wrote: > Hello There, > > I am currently testing spice-html5. I find it very promessing and I'd > like to give a hand if possible. > > I am currently experiencing an irritating issue with key mapping. I > win to have French keymap im

[Spice-devel] [PATCH] build-sys: use safer SPICE_CONTAINEROF version

2016-03-02 Thread Frediano Ziglio
Enable additional checks for this macro. Signed-off-by: Frediano Ziglio --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f5445c0..c1b1b3a 100644 --- a/configure.ac +++ b/configure.ac @@ -82,7 +82,7 @@ dnl

Re: [Spice-devel] [PATCH v2] macros: do not use more type safe CONTAINEROF version if not requested

2016-03-02 Thread Christophe Fergeau
Looks good to me, ACK. Christophe On Wed, Mar 02, 2016 at 11:26:05AM +, Frediano Ziglio wrote: > This prevents incompatibility if users (like old spice-server/spice-gtk) > are not expected to have this additional restriction. > > Signed-off-by: Frediano Ziglio > --- > spice/macros.h | 7 ++

Re: [Spice-devel] [spice v10 10/27] server: Make the RedDrawable refcount thread-safe

2016-03-02 Thread Frediano Ziglio
> > Signed-off-by: Francois Gouget > --- > > In theory this could be needed by the next patch. > Are you saying that now compression is done in another thread? > server/red-parse-qxl.h | 4 ++-- > server/red-worker.c| 7 ++- > 2 files changed, 8 insertions(+), 3 deletions(-) > > dif

[Spice-devel] [PATCH v2] macros: do not use more type safe CONTAINEROF version if not requested

2016-03-02 Thread Frediano Ziglio
This prevents incompatibility if users (like old spice-server/spice-gtk) are not expected to have this additional restriction. Signed-off-by: Frediano Ziglio --- spice/macros.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) Changes since v1: - macro name; - added code comment. dif

Re: [Spice-devel] spicy client only renders first frame?

2016-03-02 Thread Victor Toso
Hi, On Thu, Feb 11, 2016 at 11:12:49PM +, Rafael Send wrote: > Hello- > I've built spice-gtk-3 from spice-space.org on tinycore linux (64-bit). For > this, I also had to built the server, the protocol and qemu itself with > spice support; all of which seem to work fine (and things work great i

Re: [Spice-devel] How do I use Spice?

2016-03-02 Thread Victor Toso
Hi, On Thu, Feb 04, 2016 at 10:54:44AM -0600, Matthew wrote: > Hello, > > I know you have multiple PDFs on your website about how to use Spice. All > of it is confusing to me, and I have a lot of questions. You might go to the frequent asked questions before checking the PDFs ;) http://www.spice-