Re: [Spice-devel] [PATCH spice-server 1/2] Fix compile warnings on Linux 32bit system

2019-06-11 Thread Frediano Ziglio
Some typos/improves (just commit message) > Subject: [PATCH spice-server 1/2] Fix compile warnings on Linux 32bit system > Better "Remove compile warnings ..." > Based on a patch from Hongzhi.Song . > > There are following compile errors on Linux 32bit system with -Werror > for gcc. > > red-c

Re: [Spice-devel] [PATCH spice-server 04/13] spicevmc: Remove reds parameter from spicevmc_device_disconnect

2019-06-11 Thread Frediano Ziglio
ping > > Unused. > Also the devices should be able to release themselves. > > Signed-off-by: Frediano Ziglio > --- > server/char-device.h | 3 +-- > server/reds.c| 2 +- > server/spicevmc.c| 2 +- > 3 files changed, 3 insertions(+), 4 deletions(-) > > diff --git a/server/char-devi

Re: [Spice-devel] [PATCH spice-server 07/13] cache-item: Remove only written fields

2019-06-11 Thread Frediano Ziglio
ping > > cursor_cache_items and palette_cache_items where only written > but never used. > > Signed-off-by: Frediano Ziglio > --- > server/cache-item.tmpl.c | 3 --- > server/cursor-channel-client.c | 1 - > server/dcc-private.h | 1 - > 3 files changed, 5 deletions(-) > > dif

Re: [Spice-devel] [PATCH spice-server 08/13] cache-item: Remove unused define

2019-06-11 Thread Frediano Ziglio
ping > > Signed-off-by: Frediano Ziglio > --- > server/cache-item.tmpl.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/server/cache-item.tmpl.c b/server/cache-item.tmpl.c > index 6968d20db..f9418f990 100644 > --- a/server/cache-item.tmpl.c > +++ b/server/cache-item.tmpl.c > @@ -24

Re: [Spice-devel] [PATCH spice-server 05/13] red-worker: Remove warning

2019-06-11 Thread Frediano Ziglio
ping > > In some configuration _GNU_SOURCE is defined by the compiler > and defining again cause a warning. > Do not define again to avoid the warning. > > Signed-off-by: Frediano Ziglio > --- > server/red-worker.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/server/red-worker.c

Re: [Spice-devel] [PATCH spice-server 10/13] inputs-channel-client: Remove unused declarations

2019-06-11 Thread Frediano Ziglio
ping > > Signed-off-by: Frediano Ziglio > --- > server/inputs-channel-client.h | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/server/inputs-channel-client.h b/server/inputs-channel-client.h > index c22288980..1afc22bd4 100644 > --- a/server/inputs-channel-client.h > +++ b/server/in

Re: [Spice-devel] [PATCH spice-server 11/13] red-channel: Remove unused declaration

2019-06-11 Thread Frediano Ziglio
ping > > Signed-off-by: Frediano Ziglio > --- > server/red-channel.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/server/red-channel.h b/server/red-channel.h > index 4bfd81ee1..eb16bd4b8 100644 > --- a/server/red-channel.h > +++ b/server/red-channel.h > @@ -47,7 +47,6 @@ typedef str

Re: [Spice-devel] [PATCH spice-gtk 0/4] Check distribution with CI

2019-06-11 Thread Frediano Ziglio
ping > > ping the series > > > > > Make sure we can build distribution. > > Some small updates also to fix some minor issues. > > > > CI results at > > https://gitlab.freedesktop.org/fziglio/spice-gtk/pipelines/37744 > > > > Frediano Ziglio (4): > > ci: Test we can create a no dirty packag

Re: [Spice-devel] [PATCH spice-protocol 3/3] qxl_dev: Move QXLReleaseInfoExt out of start/end-packed.h

2019-06-11 Thread Frediano Ziglio
ping 3 > > ping > > > > > ping > > > > > > > > This structure is not declares as SPICE_ATTR_PACKED resulting it > > > as aligned and no packed using GCC (no MingW). > > > This structure is only packed under MingW or Microsoft compilers. > > > This structure is not technically a definition for

Re: [Spice-devel] [PATCH spice-protocol 2/3] qxl_dev: Fix alignment for QXLReleaseInfo

2019-06-11 Thread Frediano Ziglio
ping 3 > > ping > > > > > ping > > > > > > > > Do not declare the structure as aligned. > > > The start/end-packed.h headers affects only MingW or Microsoft > > > compilers. To have unaligned structure with GCC compiler you have > > > to use SPICE_ATTR_PACKED. This way the definition are the

Re: [Spice-devel] [PATCH spice-server v2] char-device: Remove unused red_char_device_destroy function

2019-06-11 Thread Frediano Ziglio
ping > > g_object_unref is directly used. > > Signed-off-by: Frediano Ziglio > --- > server/char-device.c | 6 -- > server/char-device.h | 5 ++--- > 2 files changed, 2 insertions(+), 9 deletions(-) > > diff --git a/server/char-device.c b/server/char-device.c > index 9ee255664..0f6a29d6f

Re: [Spice-devel] [PATCH spice-server] red-parse-qxl: Reset mask attributes if brush image is missing

2019-06-11 Thread Frediano Ziglio
ping > > The attributes in this case are not used to apply the mask. > Doing so avoid sending garbage from the guest which usually > don't initialise the memory in case the mask is missing. > Guest should have cleared these bytes by its own however doing so > on the server fixes the problem too.

Re: [Spice-devel] [PATCH spice-server 13/13] red-channel-client: Add some comment on the flush code

2019-06-11 Thread Frediano Ziglio
ping > > Signed-off-by: Frediano Ziglio > --- > server/red-channel-client.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/server/red-channel-client.c b/server/red-channel-client.c > index 3fd51d78b..337733d5d 100644 > --- a/server/red-channel-client.c > +++ b/server/red-channe

Re: [Spice-devel] [PATCH spice-server] smartcard-channel-client: Fix some typos in a comment

2019-06-11 Thread Frediano Ziglio
ping > > Signed-off-by: Frediano Ziglio > --- > server/smartcard-channel-client.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/server/smartcard-channel-client.c > b/server/smartcard-channel-client.c > index e22b39adf..e462401e0 100644 > --- a/server/smartcard-

[Spice-devel] [PATCH spice-server 2/2] ci: Add test for 32 bit CentOS 7

2019-06-11 Thread Frediano Ziglio
Make sure the project compile and pass tests without problems on a 32 bit architecture. Signed-off-by: Frediano Ziglio --- .gitlab-ci.yml | 22 ++ 1 file changed, 22 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 91ee47edc..7ec5ce0f0 100644 --- a/.gitlab-ci

[Spice-devel] [PATCH spice-server 1/2] Fix compile warnings on Linux 32bit system

2019-06-11 Thread Frediano Ziglio
Based on a patch from Hongzhi.Song . There are following compile errors on Linux 32bit system with -Werror for gcc. red-channel.c:207:73: error: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'long unsigned int' [-Werror=format=] |207| red_channel_debug(self, "thread

[Spice-devel] [client] gstreamer: Fix the decoding time when not using GstVideoOverlay

2019-06-11 Thread Francois Gouget
schedule_frame() only pulls frames out of GStreamer's pipeline once all previous decoded frames have been displayed. Thus when the video delay is high a decoded frame may have to wait for several frame intervals before get_decoded_frame() looks at it and computes its decoding time. So attach decod

Re: [Spice-devel] [client] gstreamer: A frame is not late if it should be displayed immediately

2019-06-11 Thread Francois Gouget
On Tue, 11 Jun 2019, Victor Toso wrote: [...] > > Thankfully the frame would usually be the last decoded frame > > and would thus be displayed anyway. > > Have you found while reading the code or some other way? Just > curious. I'm working on the client-side stream lag and I occasionally had the

Re: [Spice-devel] [client] gstreamer: A frame is not late if it should be displayed immediately

2019-06-11 Thread Victor Toso
Hi, On Tue, Jun 11, 2019 at 11:30:30AM +0200, Francois Gouget wrote: > schedule_frame() was expecting to be called at least 1 ms > before having to display the frame which is wrong: being called > 0 ms before is acceptable too. Indeed > Thankfully the frame would usually be the last decoded fram

[Spice-devel] [client] gstreamer: A frame is not late if it should be displayed immediately

2019-06-11 Thread Francois Gouget
schedule_frame() was expecting to be called at least 1 ms before having to display the frame which is wrong: being called 0 ms before is acceptable too. Thankfully the frame would usually be the last decoded frame and would thus be displayed anyway. Also reverse the inequality to make it easier to

Re: [Spice-devel] [PATCH] Fix compile errors on Linux 32bit system

2019-06-11 Thread Hongzhi, Song
On 6/10/19 9:00 PM, Frediano Ziglio wrote: On 6/5/19 6:18 AM, Hongzhi.Song wrote: There are folowing compile errors on Linux 32bit system with -Werror for gcc. red-channel.c:207:73: error: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'long unsigned int' [-Werror