Re: [Spice-devel] [PATCH] spice-options: Stop skipping method

2016-05-04 Thread Fabiano Fidêncio
On Wed, May 4, 2016 at 6:41 PM, Visarion-Mingopol Alexandru-Viorel wrote: > Sure :) Pushed! > > On Wed, May 4, 2016 at 7:33 PM, Fabiano Fidêncio > wrote: >> >> Visarion, >> >> On Wed, May 4, 2016 at 5:19 PM, Alexandru Visarion >> wrote: >> > From: Visarion-Mingopol Alexandru >> > >> > There i

Re: [Spice-devel] [PATCH] remove dandling pointer for RedCharDeviceVDIPort

2016-05-04 Thread Eduardo Lima (Etrunko)
On 05/04/2016 05:51 AM, Frediano Ziglio wrote: >> >>> >>> Honestly more I look at the patch and this fix and more I think it's all >>> a big bug... >>> What I know for sure is that this patch fix a dandling pointer. >> >> That's true. >> But I think we should have a better fix that does not ignore

Re: [Spice-devel] [PATCH] spice-options: Stop skipping method

2016-05-04 Thread Fabiano Fidêncio
Visarion, On Wed, May 4, 2016 at 5:19 PM, Alexandru Visarion wrote: > From: Visarion-Mingopol Alexandru > > There is no reason to not include the spice_get_option_group > method in the generated bindings, as it can be useful. > > It was removed in the commit 2db9b8dd037e22d2b04e8e2aeecfd685524b7

Re: [Spice-devel] [PATCH spice-html5 1/2] filexfer: Remove wrongly placed semicolon

2016-05-04 Thread Jeremy White
On 05/04/2016 07:57 AM, Pavel Grunt wrote: > Spotted by coverity Tested, acked, and pushed. Thanks, Jeremy > --- > filexfer.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/filexfer.js b/filexfer.js > index beabfd8..d850db2 100644 > --- a/filexfer.js > +++ b/filexfe

[Spice-devel] [PATCH] spice-options: Stop skipping method

2016-05-04 Thread Alexandru Visarion
From: Visarion-Mingopol Alexandru There is no reason to not include the spice_get_option_group method in the generated bindings, as it can be useful. It was removed in the commit 2db9b8dd037e22d2b04e8e2aeecfd685524b7fef, for the reason of causing warnings, but no warnings show up now. --- src/s

Re: [Spice-devel] [PATCH spice-html5 1/2] filexfer: Remove wrongly placed semicolon

2016-05-04 Thread Jonathon Jongsma
Both patches look fine to me. On Wed, 2016-05-04 at 14:57 +0200, Pavel Grunt wrote: > Spotted by coverity > --- > filexfer.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/filexfer.js b/filexfer.js > index beabfd8..d850db2 100644 > --- a/filexfer.js > +++ b/filexfer.j

Re: [Spice-devel] [PATCH 14/14] Convert RedChannel heirarchy to GObject

2016-05-04 Thread Jonathon Jongsma
On Wed, 2016-05-04 at 04:30 -0400, Frediano Ziglio wrote: > A patch of this size cannot be accepted, no matter how good it is. > We need to find a way to split it. > > Any proposal would be good. > > Frediano Yeah, I will attempt a split. Fortunately, the large patches are at the end of the ser

Re: [Spice-devel] [PATCH spice] agent-msg-filter: Move include from header

2016-05-04 Thread Frediano Ziglio
Acked-by: Frediano Ziglio > --- > server/agent-msg-filter.c | 1 + > server/agent-msg-filter.h | 2 -- > 2 files changed, 1 insertion(+), 2 deletions(-) > > diff --git a/server/agent-msg-filter.c b/server/agent-msg-filter.c > index 498864c..25edfd9 100644 > --- a/server/agent-msg-filter.c > ++

Re: [Spice-devel] [PATCH] Make asciidoc a hard requirement

2016-05-04 Thread Christophe Fergeau
On Wed, May 04, 2016 at 09:09:41AM -0300, Eduardo Lima (Etrunko) wrote: > The thing to notice here is that we are talking about two different > events, one is configure and the other one is make. Make depends on the > results of configure, but there is no way to know, at configure time, > which arg

[Spice-devel] [PATCH spice-html5 2/2] quic: Add missing break

2016-05-04 Thread Pavel Grunt
Spotted by coverity --- quic.js | 1 + 1 file changed, 1 insertion(+) diff --git a/quic.js b/quic.js index 9bb9f47..22ea3c7 100644 --- a/quic.js +++ b/quic.js @@ -280,6 +280,7 @@ function QuicModel(bpc) case 2: case 4: console.log("quic: findmodelparams(): evol valu

[Spice-devel] [PATCH spice-html5 1/2] filexfer: Remove wrongly placed semicolon

2016-05-04 Thread Pavel Grunt
Spotted by coverity --- filexfer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filexfer.js b/filexfer.js index beabfd8..d850db2 100644 --- a/filexfer.js +++ b/filexfer.js @@ -81,7 +81,7 @@ function handle_file_drop(e) e.preventDefault(); for (var i = files.length

Re: [Spice-devel] [PATCH] spice-options: Stop skipping method

2016-05-04 Thread Fabiano Fidêncio
On Wed, May 4, 2016 at 8:45 AM, Alexandru Visarion wrote: > From: Visarion-Mingopol Alexandru > > There is no reason to not include the spice_get_option_group > method in the generated bindings, as it can be useful. Seems the skip added on commit 2db9b8dd037e22d2b04e8e2aeecfd685524b7fef when fix

Re: [Spice-devel] [PATCH] Make asciidoc a hard requirement

2016-05-04 Thread Eduardo Lima (Etrunko)
On 05/04/2016 06:23 AM, Uri Lublin wrote: > On 05/03/2016 06:36 PM, Frediano Ziglio wrote: >>> >>> On 05/02/2016 07:39 AM, Uri Lublin wrote: On 04/26/2016 12:23 AM, Eduardo Lima (Etrunko) wrote: > The problem happens when you run 'make dist' in a system without > asciidoc installed. Ev

[Spice-devel] [PATCH spice] agent-msg-filter: Move include from header

2016-05-04 Thread Pavel Grunt
--- server/agent-msg-filter.c | 1 + server/agent-msg-filter.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server/agent-msg-filter.c b/server/agent-msg-filter.c index 498864c..25edfd9 100644 --- a/server/agent-msg-filter.c +++ b/server/agent-msg-filter.c @@ -22,6 +22,7 @@

Re: [Spice-devel] [PATCH] char-device: fix typo in comment

2016-05-04 Thread Pavel Grunt
On Wed, 2016-05-04 at 12:04 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- >  server/char-device.h | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/server/char-device.h b/server/char-device.h > index d05b1fd..25fa6ff 100644 > --- a/server/char-device.

Re: [Spice-devel] [PATCH] char-device: remove unused refs field

2016-05-04 Thread Pavel Grunt
On Wed, 2016-05-04 at 12:04 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio Acked-by: Pavel Grunt > --- >  server/char-device.c | 1 - >  1 file changed, 1 deletion(-) > > diff --git a/server/char-device.c b/server/char-device.c > index 6e612ba..055b232 100644 > --- a/server/char-

Re: [Spice-devel] [spice v13 10/29] server: Handle and recover from GStreamer encoding errors

2016-05-04 Thread Christophe Fergeau
On Wed, May 04, 2016 at 12:03:57PM +0200, Christophe Fergeau wrote: > Ugh that's bad :( Using gst_message_new_request_state() might avoid > this, but while the GstAppSink element is blocked waiting for data, I > don't know if state changes are going to be handled (ie I'm not sure > about GStreamer

[Spice-devel] [PATCH] char-device: fix typo in comment

2016-05-04 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/char-device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/char-device.h b/server/char-device.h index d05b1fd..25fa6ff 100644 --- a/server/char-device.h +++ b/server/char-device.h @@ -71,7 +71,7 @@ struct RedCharDeviceClass

[Spice-devel] [PATCH] char-device: remove unused refs field

2016-05-04 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/char-device.c | 1 - 1 file changed, 1 deletion(-) diff --git a/server/char-device.c b/server/char-device.c index 6e612ba..055b232 100644 --- a/server/char-device.c +++ b/server/char-device.c @@ -49,7 +49,6 @@ struct RedCharDevicePrivate { int runni

Re: [Spice-devel] [PATCH spice-gtk 1/4] gtk: add spice_main_request_mouse_mode()

2016-05-04 Thread Marc-André Lureau
Hi On Mon, Nov 16, 2015 at 4:34 PM, Victor Toso wrote: > Hm.. I would either prefer that mouse mode did not change if it can't > because the function and its documentation suggested that it will only > try to change the mouse mode. I am testing this series again, and trying to understand your is

Re: [Spice-devel] [spice v13 10/29] server: Handle and recover from GStreamer encoding errors

2016-05-04 Thread Christophe Fergeau
On Wed, May 04, 2016 at 11:21:13AM +0200, Francois Gouget wrote: > On Tue, 3 May 2016, Christophe Fergeau wrote: > [...] > > And GStreamer GstBus/GstAppSink API tends to be async, while we need > > encode_frame() to be sync, so there is indeed several useful APIs that > > we cannot use without addi

Re: [Spice-devel] [spice v14 02/29] server: Enable adding alternative MJPEG video encoders

2016-05-04 Thread Frediano Ziglio
> > 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_*. > > Signed-off-by: Francois Gouget Merged Frediano > --- > server/Makefile.am | 2 +- > se

Re: [Spice-devel] [spice v14 01/29] server: Correctly handle and trace stream report errors

2016-05-04 Thread Frediano Ziglio
> > We may get stream reports after the stream has been closed, and even, in > extreme cases, after a new stream has started reusing the same stream > id. Neither case should cause the server to crash. > So restore dcc_handle_stream_report() to how it was before being moved > to dcc.c. > > Signed

Re: [Spice-devel] [PATCH server] Using already exists function instead of SPICE_CONTAINEROF

2016-05-04 Thread Frediano Ziglio
> > Using spicevmc_red_channel_client_get_state(rcc) (which already > exists) instead of SPICE_CONTAINEROF(rcc->channel, SpiceVmcState, > channel). > --- > server/spicevmc.c | 20 ++-- > 1 file changed, 10 insertions(+), 10 deletions(-) > > diff --git a/server/spicevmc.c b/server

[Spice-devel] [client v14 27/29] spice-gtk: Allow disabling support for the builtin MJPEG video decoder

2016-05-04 Thread Francois Gouget
This makes it possible to test the GStreamer video decoder with MJPEG streams. Signed-off-by: Francois Gouget --- configure.ac | 11 +++ src/Makefile.am| 7 ++- src/channel-display-priv.h | 2 ++ src/channel-display.c | 5 + 4 files changed, 24 i

[Spice-devel] [client v14 29/29] spice-gtk: Use decodebin as a fallback for the GStreamer video decoder

2016-05-04 Thread Francois Gouget
This means future video codecs may be supported automatically. One can also force usage of decodebin by setting $SPICE_GSTVIDEO_AUTO. Signed-off-by: Francois Gouget --- src/channel-display-gst.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/channel-dis

[Spice-devel] [client v14 28/29] spice-gtk: Probe GStreamer before advertising support for a codec

2016-05-04 Thread Francois Gouget
Signed-off-by: Francois Gouget --- src/channel-display-gst.c | 17 +++-- src/channel-display-priv.h | 4 ++-- src/channel-display.c | 21 + 3 files changed, 34 insertions(+), 8 deletions(-) diff --git a/src/channel-display-gst.c b/src/channel-display-gst.c

[Spice-devel] [client v14 24/29] spice-gtk: Rename num_drops_on_receive to arrive_late_count

2016-05-04 Thread Francois Gouget
The frame may not get dropped once that's left up to video decoders. Signed-off-by: Francois Gouget --- src/channel-display-priv.h | 2 +- src/channel-display.c | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/channel-display-priv.h b/src/channel-display-priv

[Spice-devel] [spice v14 19/29] server: Add support for GStreamer 0.10

2016-05-04 Thread Francois Gouget
configure will use GStreamer 1.0 if present and fall back to GStreamer 0.10 otherwise. ffenc_mjpeg takes its bitrate as a long so extend set_gstenc_bitrate(). Signed-off-by: Francois Gouget --- configure.ac | 36 ++--- server/Makefile.am | 8 +++ server/gstreamer

[Spice-devel] [client v14 25/29] spice-gtk: Let the video decoder queue, schedule and drop the frames

2016-05-04 Thread Francois Gouget
Signed-off-by: Francois Gouget --- src/channel-display-mjpeg.c | 142 --- src/channel-display-priv.h | 10 ++- src/channel-display.c | 201 +++- 3 files changed, 189 insertions(+), 164 deletions(-) diff --git a/src/chann

[Spice-devel] [client v14 23/29] spice-gtk: Optimize handling of the decoded frame buffer

2016-05-04 Thread Francois Gouget
The MJPEG decoder does not need a zero-filled buffer. Signed-off-by: Francois Gouget --- src/channel-display-mjpeg.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/channel-display-mjpeg.c b/src/channel-display-mjpeg.c index c7e1c6f..927827b 100644 --- a/src/chan

[Spice-devel] [qxl v14 20/29] spiceqxl: Add SpiceVideoCodecs to specify video codec preferences

2016-05-04 Thread Francois Gouget
Signed-off-by: Francois Gouget --- examples/spiceqxl.xorg.conf.example | 7 +++ src/qxl.h | 1 + src/qxl_driver.c| 2 ++ src/spiceqxl_spice_server.c | 15 +++ 4 files changed, 25 insertions(+) diff --git a/examples/spiceqxl

[Spice-devel] [client v14 26/29] spice-gtk: Add a GStreamer video decoder for MJPEG, VP8 and h264

2016-05-04 Thread Francois Gouget
Signed-off-by: Francois Gouget --- configure.ac | 26 ++- src/Makefile.am| 8 + src/channel-display-gst.c | 433 + src/channel-display-priv.h | 6 + src/channel-display.c | 10 ++ 5 files changed, 482 insertions(+),

[Spice-devel] [qxl v14 21/29] Xspice: Add --video-codecs to specify encoder and codec preferences

2016-05-04 Thread Francois Gouget
Signed-off-by: Francois Gouget --- scripts/Xspice | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/Xspice b/scripts/Xspice index 15a5a5e..bf8112f 100755 --- a/scripts/Xspice +++ b/scripts/Xspice @@ -87,6 +87,7 @@ parser.add_argument('--zlib-glz-wan-compression', # TO

[Spice-devel] [spice v14 18/29] server: Dynamically adjust the GStreamer encoder bitrate if possible

2016-05-04 Thread Francois Gouget
This is faster and lets the encoder leverage past bitrate shaping history to attain the target faster. Signed-off-by: Francois Gouget --- server/gstreamer-encoder.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/server/gstreamer-encoder.c b/server/gstreamer

[Spice-devel] [client v14 22/29] spice-gtk: Enable adding alternative video decoders

2016-05-04 Thread Francois Gouget
This replaces the original channel-display-mjpeg API with a VideoDecoder base class which can be reimplemented by other decoders. Furthermore this moves the MJPEG-specific state information from the display_stream struct to a derived class of VideoDecoder. Signed-off-by: Francois Gouget --- src/

[Spice-devel] [spice v14 16/29] server: Give up after a while if GStreamer cannot handle the video

2016-05-04 Thread Francois Gouget
This typically happens when sending very small frames (less than 16 pixels in one dimension) to the x264enc encoder. This avoids repeatedly wasting time rebuilding the pipeline. Signed-off-by: Francois Gouget --- server/gstreamer-encoder.c | 61 ++ 1 f

[Spice-devel] [spice v14 17/29] server: Respect the GStreamer encoder's valid bit rate range

2016-05-04 Thread Francois Gouget
GObject returns an error instead of clamping if given an out of range property value. Signed-off-by: Francois Gouget --- server/gstreamer-encoder.c | 67 ++ 1 file changed, 50 insertions(+), 17 deletions(-) diff --git a/server/gstreamer-encoder.c b/se

[Spice-devel] [spice v14 15/29] server: Adjust the frame rate based on the GStreamer encoding time

2016-05-04 Thread Francois Gouget
Signed-off-by: Francois Gouget --- server/gstreamer-encoder.c | 40 +--- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/server/gstreamer-encoder.c b/server/gstreamer-encoder.c index 3b223c9..2b20c99 100644 --- a/server/gstreamer-encoder.c +++ b/

[Spice-devel] [spice v14 14/29] server: Adjust the GStreamer encoder bit rate to the network

2016-05-04 Thread Francois Gouget
The video encoder uses the client reports and/or notifications of server frame drops as its feedback mechanisms. In particular it keeps track of the maximum video margin and reduces the bit rate whenever the margin goes below certain thresholds or decreases too sharply. It uses these to figure out

[Spice-devel] [spice v14 12/29] server: Add h264 support to the GStreamer video encoder

2016-05-04 Thread Francois Gouget
Signed-off-by: Francois Gouget --- configure.ac | 1 + server/gstreamer-encoder.c | 17 - server/reds.c | 4 +++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6093431..1e98523 100644 --- a/configure.

[Spice-devel] [spice v14 11/29] server: Avoid copying the input frame in the GStreamer encoder

2016-05-04 Thread Francois Gouget
Note that we can only avoid copies for the first 1 Mpixels or so. That's because Spice splits larger frames into more chunks than we can fit GstMemory fragments in a GStreamer buffer. So if there are more pixels we will avoid copies for the first 3840 KB and copy the rest. Furthermore, while in pra

[Spice-devel] [spice v14 13/29] server: Shape the bit rate of the GStreamer codecs output

2016-05-04 Thread Francois Gouget
The GStreamer codecs don't follow the specified bit rate very closely: they can decide to exceed it for ten seconds or more if they consider the scene deserves it. Such long bursts are enough to cause network congestion, resulting in many lost frames which cause significant display corruption. So t

[Spice-devel] [spice v14 10/29] server: Handle and recover from GStreamer encoding errors

2016-05-04 Thread Francois Gouget
This avoids getting stuck if the codec is buggy or fails to encode a frame for whatever reason (e.g. odd frame size). Signed-off-by: Francois Gouget --- server/gstreamer-encoder.c | 105 ++--- 1 file changed, 90 insertions(+), 15 deletions(-) diff --git a

[Spice-devel] [spice v14 07/29] server: Add VP8 support to the GStreamer video encoder

2016-05-04 Thread Francois Gouget
Signed-off-by: Francois Gouget --- configure.ac | 1 + server/gstreamer-encoder.c | 67 -- server/reds.c | 4 ++- 3 files changed, 63 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 9904bc8..9bd

[Spice-devel] [spice v14 08/29] server: Use the optimal number of threads for VP8 encoding

2016-05-04 Thread Francois Gouget
Signed-off-by: Francois Gouget --- configure.ac | 4 server/gstreamer-encoder.c | 27 ++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9bd8ccb..6093431 100644 --- a/configure.ac +++ b/configure.ac @@ -

[Spice-devel] [spice v14 06/29] replay: Add an option to change video codec

2016-05-04 Thread Pavel Grunt
--- server/tests/replay.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/server/tests/replay.c b/server/tests/replay.c index 7e4659b..025b20c 100644 --- a/server/tests/replay.c +++ b/server/tests/replay.c @@ -290,7 +290,7 @@ int main(int argc, char **argv) {

[Spice-devel] [spice v14 09/29] server: Let the video encoder manage the compressed buffer

2016-05-04 Thread Francois Gouget
This way the video encoder is not forced to use malloc()/free(). This also allows more flexibility in how the video encoder manages the buffer which allows for a zero-copy implementation in both video encoders. Signed-off-by: Francois Gouget --- server/dcc-send.c | 25 +++--- se

[Spice-devel] [spice v14 05/29] server: Let the administrator pick the video encoder and codec

2016-05-04 Thread Francois Gouget
The Spice server administrator can specify the encoder and codec preferences to optimize for CPU or bandwidth usage. Preferences are described in a semi-colon separated list of encoder:codec pairs. The server has a default preference list which can explicitly be selected by specifying 'auto'. Sign

[Spice-devel] [spice v14 04/29] server: Check the client video codec capabilities

2016-05-04 Thread Francois Gouget
The server picks a codec supported by the client based on the following new client capabilities: * SPICE_DISPLAY_CAP_MULTI_CODEC which denotes a recent client that supports multiple codecs. This capability is needed to not have to hardcode that MJPEG is supported. This makes it possible to w

[Spice-devel] [spice v14 03/29] server: Add a GStreamer 1.0 MJPEG video encoder and use it by default

2016-05-04 Thread Francois Gouget
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 streams but lacks any rate control. It should still work fine if bandwidth is sufficient such as on LANs. Signed-off-by: Francois Go

[Spice-devel] [spice v14 02/29] server: Enable adding alternative MJPEG video encoders

2016-05-04 Thread Francois Gouget
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_*. Signed-off-by: Francois Gouget --- server/Makefile.am | 2 +- server/dcc-send.c | 27 + s

[Spice-devel] [spice v14 01/29] server: Correctly handle and trace stream report errors

2016-05-04 Thread Francois Gouget
We may get stream reports after the stream has been closed, and even, in extreme cases, after a new stream has started reusing the same stream id. Neither case should cause the server to crash. So restore dcc_handle_stream_report() to how it was before being moved to dcc.c. Signed-off-by: Francois

[Spice-devel] [spice v14 00/29] Add GStreamer support for video streaming

2016-05-04 Thread Francois Gouget
This patch series adds support for using GStreamer to encode and decode the video streams, adding support for VP8 and h264 codecs. As before the patches can also be grabbed from the gst branch of the repositories below: spice: https://github.com/fgouget/spice spice-gtk: https://gi

Re: [Spice-devel] [PATCH spice-gtk] gtk: fix server-mode mouse

2016-05-04 Thread Pavel Grunt
On Tue, 2016-05-03 at 19:40 +0200, Marc-André Lureau wrote: > On Tue, May 3, 2016 at 7:36 PM, Marc-André Lureau > wrote: > > +gtk_container_add(GTK_CONTAINER(display), d->stack); > > > better with GTK_WIDGET() to avoid the warning, fixed > Thank you, ack Pavel

Re: [Spice-devel] [PATCH] Make asciidoc a hard requirement

2016-05-04 Thread Uri Lublin
On 05/03/2016 06:36 PM, Frediano Ziglio wrote: On 05/02/2016 07:39 AM, Uri Lublin wrote: On 04/26/2016 12:23 AM, Eduardo Lima (Etrunko) wrote: The problem happens when you run 'make dist' in a system without asciidoc installed. Even though in configure time there is a check for building the ma

Re: [Spice-devel] [PATCH 2/2 v4] add a program to test redirection on Windows

2016-05-04 Thread Fabiano Fidêncio
On Tue, May 3, 2016 at 1:31 PM, Frediano Ziglio wrote: >> >> Frediano, >> >> On Tue, May 3, 2016 at 11:26 AM, Frediano Ziglio wrote: >> > This program attempt multiple redirection combination: >> > - passing handles using either CreateProcess or SetStdHandle; >> > - having a console or not; >> >

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

2016-05-04 Thread Fabiano Fidêncio
On Mon, May 2, 2016 at 11:43 PM, Fabiano Fidêncio wrote: > On Fri, Apr 29, 2016 at 4:09 PM, Frediano Ziglio wrote: >> 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

Re: [Spice-devel] [spice-gtk EXP] Handle mismatching CapsLock

2016-05-04 Thread Pavel Grunt
On Wed, 2016-05-04 at 05:12 -0400, Frediano Ziglio wrote: > > > > > > Hi, > > > > as I said - switch to vt (ctrl+alt+fx), start typing, press capslock, it > > will > > bump after a while > > > > Pavel... this is based on a known bug in the console handling keyboard leds > and current code read

Re: [Spice-devel] [spice v13 10/29] server: Handle and recover from GStreamer encoding errors

2016-05-04 Thread Francois Gouget
On Tue, 3 May 2016, Christophe Fergeau wrote: [...] > And GStreamer GstBus/GstAppSink API tends to be async, while we need > encode_frame() to be sync, so there is indeed several useful APIs that > we cannot use without additional complexity. I'm wondering if the > simpler patch attached to this me

Re: [Spice-devel] [spice-gtk EXP] Handle mismatching CapsLock

2016-05-04 Thread Frediano Ziglio
> > Hi, > > as I said - switch to vt (ctrl+alt+fx), start typing, press capslock, it will > bump after a while > Pavel... this is based on a known bug in the console handling keyboard leds and current code reading leds. > another example - open a text editor - press a key and keep it pressed,

Re: [Spice-devel] [vdagent-linux v4 1/7] vdagentd: send file-xfer status, generic version

2016-05-04 Thread Victor Toso
Hi, On Tue, May 03, 2016 at 11:37:43AM -0500, Jonathon Jongsma wrote: > On Tue, 2016-05-03 at 13:01 +0200, Victor Toso wrote: > > Change cancel_file_xfer() helper function to file_xfer_status() so we > > can send other status to the client. > > I like the idea, though I'd prefer a verb in the func

Re: [Spice-devel] [PATCH] remove dandling pointer for RedCharDeviceVDIPort

2016-05-04 Thread Frediano Ziglio
> > On 05/03/2016 01:53 PM, Frediano Ziglio wrote: > >> > >> On 05/02/2016 11:25 AM, Frediano Ziglio wrote: > >>> This was caused by commit 1cec1c5118b65124de6bc6f984f376ff4e297bfb > >>> ("reds: Make VDIPortState a GObject") as the lifespan of RedCharDevice > >>> was changed. > >>> > >>> This coul

Re: [Spice-devel] [PATCH 14/14] Convert RedChannel heirarchy to GObject

2016-05-04 Thread Frediano Ziglio
A patch of this size cannot be accepted, no matter how good it is. We need to find a way to split it. Any proposal would be good. Frediano > > When using private structs with GObject, there's a maximum size of (I > think) 64k, which was exceeded by the DisplayChannel object. To make > this work

[Spice-devel] [PATCH] spice-options: Stop skipping method

2016-05-04 Thread Alexandru Visarion
From: Visarion-Mingopol Alexandru There is no reason to not include the spice_get_option_group method in the generated bindings, as it can be useful. --- src/spice-option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spice-option.c b/src/spice-option.c index 46ae530..

Re: [Spice-devel] [PATCH 01/14] Add red_client_seamless_migration_done_for_channel()

2016-05-04 Thread Pavel Grunt
On Wed, 2016-05-04 at 09:12 +0200, Pavel Grunt wrote: > Hey, > > On Tue, 2016-05-03 at 15:00 -0500, Jonathon Jongsma wrote: > > This is a public RedClient API that handles updating itself rather than > > having the RedChannelClient poke around at the internal structure in > > rec_channel_client_se

Re: [Spice-devel] [PATCH 01/14] Add red_client_seamless_migration_done_for_channel()

2016-05-04 Thread Pavel Grunt
Hey, On Tue, 2016-05-03 at 15:00 -0500, Jonathon Jongsma wrote: > This is a public RedClient API that handles updating itself rather than > having the RedChannelClient poke around at the internal structure in > rec_channel_client_seamless_migration_done(). It looks good, I would drop the rcc para