[Spice-devel] [PATCH spice-common] test-overflow: Remove dependency from libspice-common-{server, client}

2018-07-05 Thread Frediano Ziglio
Remove dependency from main protocol allowing to run the test independently from generation setting. This is useful with Meson allowing to not generate all code. Signed-off-by: Frediano Ziglio --- tests/Makefile.am| 9 ++--- tests/meson.build| 17 ++--- t

Re: [Spice-devel] SPICE logging facilities

2018-07-05 Thread Christophe Fergeau
On Wed, Jul 04, 2018 at 12:29:15PM -0400, Frediano Ziglio wrote: > > > > On Wed, Jul 04, 2018 at 11:38:14AM -0400, Frediano Ziglio wrote: > > > Another question is however "Are we going to use g_critical as > > > g_critical?". It sounds a tricky question. Let say that a new person > > > starts to

Re: [Spice-devel] SPICE logging facilities

2018-07-05 Thread Victor Toso
Hi, On Wed, Jul 04, 2018 at 12:29:15PM -0400, Frediano Ziglio wrote: > > > > On Wed, Jul 04, 2018 at 11:38:14AM -0400, Frediano Ziglio wrote: > > > Another question is however "Are we going to use g_critical > > > as g_critical?". It sounds a tricky question. Let say that > > > a new person start

Re: [Spice-devel] [PATCH spice-gtk v2 1/3] channel-display-gst: Prevent accumulating output queue

2018-07-05 Thread Snir Sheriber
On 07/04/2018 07:00 PM, Frediano Ziglio wrote: Hi, On 07/03/2018 06:22 PM, Frediano Ziglio wrote: Hi, On 05/25/2018 03:55 PM, Frediano Ziglio wrote: display_queue is queued with decoded frames ready to be displayed. However current code can insert a timeout before displaying and removing

Re: [Spice-devel] [PATCH spice-common] canvas_base: Fix minor indentation issues

2018-07-05 Thread Victor Toso
On Wed, Jul 04, 2018 at 05:23:52PM +0100, Frediano Ziglio wrote: > This patch just changes some spaces fixing some possible misleading > indentation. > > Signed-off-by: Frediano Ziglio Acked-by: Victor Toso > --- > common/canvas_base.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(

Re: [Spice-devel] [PATCH spice-common] canvas_base: Fix minor indentation issues

2018-07-05 Thread Christophe Fergeau
Sure, Acked-by: Christophe Fergeau On Wed, Jul 04, 2018 at 05:23:52PM +0100, Frediano Ziglio wrote: > This patch just changes some spaces fixing some possible misleading > indentation. > > Signed-off-by: Frediano Ziglio > --- > common/canvas_base.c | 4 ++-- > 1 file changed, 2 insertions(+)

Re: [Spice-devel] [PATCH spice-common] proto: Improve documentation for stream_report::num_drops

2018-07-05 Thread Victor Toso
Hi, On Wed, Jul 04, 2018 at 06:57:17PM +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > spice.proto | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/spice.proto b/spice.proto > index e678ef8..3084c2b 100644 > --- a/spice.proto > +++ b/spice.pr

Re: [Spice-devel] Cannot send email to spice-devel-request address

2018-07-05 Thread Christophe Fergeau
Hey, On Wed, Jul 04, 2018 at 04:31:45PM -0500, Carlos González wrote: > Every attempt to send to such address results in the following error from > the SMTP server: > 550 5.1.1 : Recipient address > rejected: User unknown in local recipient table > > This same issue happened back when trying to e

Re: [Spice-devel] [PATCH spice-common v2] canvas_base: Avoid misaligned access decoding LZ4 data

2018-07-05 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Wed, Jul 04, 2018 at 04:27:11PM +0100, Frediano Ziglio wrote: > Make code faster on platforms not supporting unaligned access by > default. > SPICE_UNALIGNED_CAST is just silencing possible alignment warning and, > if enabled, produces some logs, however in this c

Re: [Spice-devel] [PATCH spice-common] proto: Improve documentation for stream_report::num_drops

2018-07-05 Thread Frediano Ziglio
> > Hi, > > On Wed, Jul 04, 2018 at 06:57:17PM +0100, Frediano Ziglio wrote: > > Signed-off-by: Frediano Ziglio > > --- > > spice.proto | 6 -- > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > diff --git a/spice.proto b/spice.proto > > index e678ef8..3084c2b 100644 > > --- a/spi

Re: [Spice-devel] [PATCH spice-gtk v2 1/3] channel-display-gst: Prevent accumulating output queue

2018-07-05 Thread Frediano Ziglio
> On 07/04/2018 07:00 PM, Frediano Ziglio wrote: > > > Hi, > > > > > > On 07/03/2018 06:22 PM, Frediano Ziglio wrote: > > > > > > > > Hi, > > > > > > > > > > > > > > > On 05/25/2018 03:55 PM, Frediano Ziglio wrote: > > > > > > > > > > > > > > > > display_queue is queued with decode

Re: [Spice-devel] [vdagent-win PATCH v4 06/19] Factor out an utility function to read strings from registry

2018-07-05 Thread Jonathon Jongsma
On Mon, 2018-07-02 at 08:43 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > vdagent/display_setting.cpp | 81 + > > 1 file changed, 36 insertions(+), 45 deletions(-) > > diff --git a/vdagent/display_setting.cpp > b/vdagent/display_setti

[Spice-devel] [spice-server PATCH v2] stream-device: handle_data: send whole message

2018-07-05 Thread Uri Lublin
SPICE expect to have each frame in a single message. So far the stream-device did not do that. That works fine for H264 streams but not for mjpeg. The client handles by itself mjpeg streams, and not via gstreamer, and is assuming that a message contains the whole frame. Since it currently not, usin

Re: [Spice-devel] [vdagent-win PATCH v4 07/19] Allow one more character reading strings from registry

2018-07-05 Thread Jonathon Jongsma
I guess this avoids the error I just pointed out in the previous patch. This patch looks fine, but the previous patch should still be fixed in case this one gets reverted sometime in the future for some reason. One minor comment below. Acked-by: Jonathon Jongsma On Mon, 2018-07-02 at 08:43

Re: [Spice-devel] [vdagent-win PATCH v4 10/19] Use std::unique_ptr for _desktop_layout

2018-07-05 Thread Jonathon Jongsma
Sure Acked-by: Jonathon Jongsma On Mon, 2018-07-02 at 08:43 +0100, Frediano Ziglio wrote: > Make automatic the release of this pointer. > Also avoids having a leak if VDAgent::run is called twice. > > Signed-off-by: Frediano Ziglio > --- > vdagent/vdagent.cpp | 6 ++ > 1 file changed, 2 i

Re: [Spice-devel] [PATCH spice-gtk v2 1/3] channel-display-gst: Prevent accumulating output queue

2018-07-05 Thread Snir Sheriber
On 07/05/2018 12:18 PM, Frediano Ziglio wrote: On 07/04/2018 07:00 PM, Frediano Ziglio wrote: Hi, On 07/03/2018 06:22 PM, Frediano Ziglio wrote: Hi, On 05/25/2018 03:55 PM, Frediano Ziglio wrote:

Re: [Spice-devel] [vdagent-win PATCH v4 06/19] Factor out an utility function to read strings from registry

2018-07-05 Thread Frediano Ziglio
> > On Mon, 2018-07-02 at 08:43 +0100, Frediano Ziglio wrote: > > Signed-off-by: Frediano Ziglio > > --- > > vdagent/display_setting.cpp | 81 + > > > > 1 file changed, 36 insertions(+), 45 deletions(-) > > > > diff --git a/vdagent/display_setting.cpp > > b/

Re: [Spice-devel] [vdagent-win PATCH v4 07/19] Allow one more character reading strings from registry

2018-07-05 Thread Frediano Ziglio
> > I guess this avoids the error I just pointed out in the previous patch. >This patch looks fine, but the previous patch should still be fixed > in case this one gets reverted sometime in the future for some reason. > > One minor comment below. > > Acked-by: Jonathon Jongsma > > > On Mo

Re: [Spice-devel] [vdagent-win PATCH v4 11/19] Allocate _control_event and _stop_event just once

2018-07-05 Thread Jonathon Jongsma
On Mon, 2018-07-02 at 08:43 +0100, Frediano Ziglio wrote: > Handle _control_event and _stop_event destruction in destructor. > Still allows to call VDAgent::run multiple time if needed. Remove "Still" Acked-by: Jonathon Jongsma > > Signed-off-by: Frediano Ziglio > --- > vdagent/vdagent.cpp |

Re: [Spice-devel] [vdagent-win PATCH v4 13/19] Use destructor instead of cleanup function

2018-07-05 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Mon, 2018-07-02 at 08:43 +0100, Frediano Ziglio wrote: > More C++ style. > Also avoids missing cleanup calls. > > Signed-off-by: Frediano Ziglio > --- > vdagent/vdagent.cpp | 16 +++- > 1 file changed, 3 insertions(+), 13 deletions(-) > > diff --git

Re: [Spice-devel] [vdagent-win PATCH v4 14/19] Avoid declaring event_thread_id

2018-07-05 Thread Jonathon Jongsma
On Mon, 2018-07-02 at 11:35 -0400, Frediano Ziglio wrote: > > > > > On 2 Jul 2018, at 09:43, Frediano Ziglio > > > wrote: > > > > > > As the value is never used we can pass NULL in CreateThread. > > > > > > Signed-off-by: Frediano Ziglio > > > --- > > > vdagent/vdagent.cpp | 3 +-- > > > 1 file

Re: [Spice-devel] [vdagent-win PATCH v4 15/19] Avoids declaring _system_version member

2018-07-05 Thread Jonathon Jongsma
In summary: change Avoids to Avoid. Acked-by: Jonathon Jongsma On Mon, 2018-07-02 at 08:43 +0100, Frediano Ziglio wrote: > The check can be done a single time, no reason to cache > supported_system_version() value. > > Signed-off-by: Frediano Ziglio > --- > vdagent/vdagent.cpp | 8 +++- >

Re: [Spice-devel] [vdagent-win PATCH v4 14/19] Avoid declaring event_thread_id

2018-07-05 Thread Christophe de Dinechin
> On 5 Jul 2018, at 15:14, Jonathon Jongsma wrote: > > On Mon, 2018-07-02 at 11:35 -0400, Frediano Ziglio wrote: >>> On 2 Jul 2018, at 09:43, Frediano Ziglio wrote: As the value is never used we can pass NULL in CreateThread. Signed-off-by: Frediano Ziglio >>>

Re: [Spice-devel] [spice-server PATCH v2] stream-device: handle_data: send whole message

2018-07-05 Thread Frediano Ziglio
> > SPICE expect to have each frame in a single message. > So far the stream-device did not do that. > That works fine for H264 streams but not for mjpeg. > The client handles by itself mjpeg streams, and not via > gstreamer, and is assuming that a message contains the > whole frame. Since it curr

Re: [Spice-devel] Spice console pixelated noise on display changes

2018-07-05 Thread Mitja Mihelič
On 19/06/2018 10:09, Victor Toso wrote: Hi, On Mon, Jun 18, 2018 at 04:23:32PM +0200, Mitja Mihelič wrote: Does it work fine with remote-viewer? Question ^ You could try different image compression too, e.g image-compression=off https://people.freedesktop.org/~teuf/spice-doc/html/ch03.html

Re: [Spice-devel] Spice console pixelated noise on display changes

2018-07-05 Thread Mitja Mihelič
On 05/07/2018 16:56, Mitja Mihelič wrote: On 19/06/2018 10:09, Victor Toso wrote: Hi, On Mon, Jun 18, 2018 at 04:23:32PM +0200, Mitja Mihelič wrote: Does it work fine with remote-viewer? Question ^ You could try different image compression too, e.g image-compression=off https://people.f

[Spice-devel] [PATCH 2/2] Avoid schedule frames if GstVideoOverly is used

2018-07-05 Thread Snir Sheriber
When GstVideoOverly is used there is no appsink, playing of a frame is done according the time value of its buffer --- Currently no error will happen since counting pending frames is not done and that will cause some checks will to fail and avoid critic error. but should be safer to return here. Is

[Spice-devel] [PATCH 1/2] Update comments in spice-gtk regards GstVideoOverlay

2018-07-05 Thread Snir Sheriber
--- Hopfully it's clear to understand the separation i did here without re-numbering:/ --- src/channel-display-gst.c | 35 +-- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/src/channel-display-gst.c b/src/channel-display-gst.c index ff0ecd8..1ccc78

Re: [Spice-devel] [vdagent-win PATCH v4 16/19] Avoids to call supported_system_version()

2018-07-05 Thread Jonathon Jongsma
Seems reasonable Acked-by: Jonathon Jongsma On Mon, 2018-07-02 at 08:43 +0100, Frediano Ziglio wrote: > The only reason we call this function is to check if the > system should support some APIs. > Instead just check directly if these APIs are supported > calling GetProcAddress directly. > >

Re: [Spice-devel] Cannot send email to spice-devel-request address

2018-07-05 Thread Carlos González
Sounds like you don't support that address at all? When first subscribing to the list, confirmation and welcome messages -along with basic usage instructions- came from that address! And in the basic instructions it's mentioned one can change settings *either* through web interface *and* that addr

Re: [Spice-devel] [vdagent-win PATCH v4 17/19] vdlog: Avoids to having a lookup table for log types

2018-07-05 Thread Jonathon Jongsma
Patches 17-19 don't seem particularly compelling to me, but I guess I don't mind. Unless anybody else objects: Acked-by: Jonathon Jongsma On Mon, 2018-07-02 at 08:43 +0100, Frediano Ziglio wrote: > As log type is passed as constant in some macros and the lockup > is basically using this name w

Re: [Spice-devel] [spice-common v2 1/3] log: Remove SPICE_DISABLE_ABORT

2018-07-05 Thread Jonathon Jongsma
ACK series On Tue, 2018-07-03 at 12:42 +0200, Christophe Fergeau wrote: > spice-gtk was the last user, and stopped using it on Jun 14th 2017 > in 040090ccba34 "build-sys: remove -DSPICE_DISABLE_ABORT" > > Signed-off-by: Christophe Fergeau > --- > common/log.c | 4 > common/spice_

Re: [Spice-devel] [spice-server] build: Remove unneeded spice_common.h includes

2018-07-05 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2018-07-03 at 12:42 +0200, Christophe Fergeau wrote: > Signed-off-by: Christophe Fergeau > --- > server/dispatcher.c | 1 - > server/red-common.h | 1 - > 2 files changed, 2 deletions(-) > > diff --git a/server/dispatcher.c b/server/dispatcher.c > index 0953

Re: [Spice-devel] [spice-server] build: Remove unneeded spice_common.h includes

2018-07-05 Thread Frediano Ziglio
> > Acked-by: Jonathon Jongsma > As a follow up of these patches I think an update to spice-common submodule hash in spice-server/spice-gtk would be helpful. Frediano > > On Tue, 2018-07-03 at 12:42 +0200, Christophe Fergeau wrote: > > Signed-off-by: Christophe Fergeau > > --- > > server/d

Re: [Spice-devel] Cannot send email to spice-devel-request address

2018-07-05 Thread Frediano Ziglio
> Sounds like you don't support that address at all? > When first subscribing to the list, confirmation and welcome messages -along > with basic usage instructions- came from that address! > And in the basic instructions it's mentioned one can change settings *either* > through web interface *and*

Re: [Spice-devel] [spice-common v2 1/3] log: Remove SPICE_DISABLE_ABORT

2018-07-05 Thread Frediano Ziglio
> > ACK series > For some reasons Meson build is failing, see https://gitlab.freedesktop.org/spice/spice-common/-/jobs/8351. I checked common/.deps/pixman_utils.Plo (autotool file dependencies) and there are GLib headers (don't ask me where they came from) Frediano > On Tue, 2018-07-03 at 12:

Re: [Spice-devel] [PATCH 1/2] Update comments in spice-gtk regards GstVideoOverlay

2018-07-05 Thread Frediano Ziglio
Acked the entire series. note that this patch is much shorter without space changes. > > --- > Hopfully it's clear to understand the separation i did here without > re-numbering:/ > --- > src/channel-display-gst.c | 35 +-- > 1 file changed, 21 insertions(+), 14