[Spice-devel] Why does spice server keep sending streaming data while video is not being played?

2019-02-13 Thread 陈炤
Hi, My spice server is 0.14.1 and gtk is master in the repository. I was testing video stream. I set video-streaming to "filter" and played a .mp4 file. The CPU usage of the gtk is about 180%. When I pause the video, theoretically the stream should be destroyed and no data sould be sent, but

Re: [Spice-devel] [spice-html5][PATCH 00/12] Prepare for npmjs publication

2019-02-13 Thread Jeremy White
Hi Cédric, Thank you for this! This is very useful work, and I appreciate you taking the time to work on it. I've been through all of the patches, and I think everything looks great. However, your 02 patch in this sequence has a lot of trailing white space; could you eliminate that? Also,

Re: [Spice-devel] [PATCH spice-gtk 07/12] keycodemapdb: update submodule

2019-02-13 Thread Frediano Ziglio
> > From: Marc-André Lureau > > Daniel P. Berrange (24): > Add named constants for QKeyCode values > Add ability to generate enums > Build tests with warnings enabled > Add Sun/Sparc keyboard keycodes > Add some missing mappings for USB HID > Add line for QKey

Re: [Spice-devel] [PATCH spice-gtk 12/12] gtk-doc: fix api-index warnings

2019-02-13 Thread Frediano Ziglio
> From: Marc-André Lureau > > Fix gtk-doc warnings such as: > html/SpiceChannel.html:538: warning: no link for: "api-index-0.20" -> (0.20). > > Unfortunately, the generated file is still missing. > > Signed-off-by: Marc-André Lureau Acked-by: Frediano Ziglio > --- > doc/reference/spice-gtk

Re: [Spice-devel] [PATCH spice-gtk 11/12] gtk-doc: fix a few warnings, improve output

2019-02-13 Thread Frediano Ziglio
> > From: Marc-André Lureau > > Escape special characters with \, fixes: > html/SpiceUsbDeviceManager.html:741: warning: no link for: "1" -> ( class="literal">1). > html/SpiceUsbDeviceManager.html:742: warning: no link for: "2" -> ( class="literal">2). > html/SpiceUsbDeviceManager.html:743: warn

Re: [Spice-devel] [PATCH spice-server v2 1/3] meson: Use gnu_symbol_visibility keyword introduced in meson 0.48

2019-02-13 Thread Frediano Ziglio
> > Signed-off-by: Eduardo Lima (Etrunko) For the series: Acked-by: Frediano Ziglio > --- > meson.build| 5 ++--- > server/meson.build | 3 ++- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/meson.build b/meson.build > index 811099c6..459409f6 100644 > --- a/mes

[Spice-devel] [PATCH spice-server v2 3/3] meson: switch smartcard option to auto feature

2019-02-13 Thread Eduardo Lima (Etrunko)
Make it compatible with spice-common. Signed-off-by: Eduardo Lima (Etrunko) --- meson.build | 14 ++ meson_options.txt| 3 +-- subprojects/spice-common | 2 +- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/meson.build b/meson.build index f822c

[Spice-devel] [PATCH spice-server v2 1/3] meson: Use gnu_symbol_visibility keyword introduced in meson 0.48

2019-02-13 Thread Eduardo Lima (Etrunko)
Signed-off-by: Eduardo Lima (Etrunko) --- meson.build| 5 ++--- server/meson.build | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 811099c6..459409f6 100644 --- a/meson.build +++ b/meson.build @@ -4,7 +4,7 @@ project('spice', 'c',

[Spice-devel] [PATCH spice-server v2 2/3] meson: Bump libcacard requirement to 2.5.1

2019-02-13 Thread Eduardo Lima (Etrunko)
This had already been done for autotools in spice-common commit 924f47a653bd87fbd50229ee34b58d7b9a3f1ec8. Signed-off-by: Eduardo Lima (Etrunko) --- meson.build| 15 ++- server/smartcard.c | 4 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/meson.build b

Re: [Spice-devel] [PATCH spice-common v2] meson: Bump requirement to 0.48

2019-02-13 Thread Frediano Ziglio
> This version is already required by spice-gtk and is soon to be required > by spice-server as well, so there is no much sense in keeping it for > spice-commo. > > It is necessary to update the usage of the python module as described in > the documentation: > > https://mesonbuild.com/Release-not

[Spice-devel] [PATCH spice-common v2] meson: Bump requirement to 0.48

2019-02-13 Thread Eduardo Lima (Etrunko)
This version is already required by spice-gtk and is soon to be required by spice-server as well, so there is no much sense in keeping it for spice-commo. It is necessary to update the usage of the python module as described in the documentation: https://mesonbuild.com/Release-notes-for-0-48-0.ht

Re: [Spice-devel] [PATCH spice-common 4/4] meson: switch smartcard option to auto feature

2019-02-13 Thread Frediano Ziglio
> In spice-gtk commit dbdf692909f7a2b272b06a674a38a1aeb4303032, the > smartcard option has been changed from boolean to feature, which > actually broke the option yeld, because the option type is incompatible > between superproject and subproject. > > Signed-off-by: Eduardo Lima (Etrunko) Acke

Re: [Spice-devel] [PATCH] qxl-wddm-dod: Load best know defaults for video mode at driver's start

2019-02-13 Thread Yuri Benditovich
Sure. It receives the video mode (as any video driver) by AcquirePostDisplayInfo. The system knows the video mode from boot time (using GOP protocol). But when this information is broken by 0.18 driver, BasicDisplay does not receive anything good and left us with black screen. (This behavior is doc

[Spice-devel] [PATCH spice-server 2/3] reds: Reuse agent_dev local variable

2019-02-13 Thread Frediano Ziglio
The field is only assigned in do_spice_init, surely won't change in the meanwhile. Signed-off-by: Frediano Ziglio --- server/reds.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/server/reds.c b/server/reds.c index f27e28b9d..fbc21f7be 100644 --- a/s

[Spice-devel] [PATCH spice-server 3/3] reds: Check QXL ID registering interface

2019-02-13 Thread Frediano Ziglio
Avoid to register multiple interface with the same ID. This would results in issue as 2 channels would have same (channel_type, channel_id) which should be unique. Qemu always allocate QXL interface with IDs from 0. Signed-off-by: Frediano Ziglio --- server/reds.c | 8 1 file changed, 8

[Spice-devel] [PATCH spice-server 1/3] reds: Use proper enumeration for read_state field

2019-02-13 Thread Frediano Ziglio
Allows the compiler to catch some additional errors. Signed-off-by: Frediano Ziglio --- server/reds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/reds.c b/server/reds.c index 306bb7c6e..f27e28b9d 100644 --- a/server/reds.c +++ b/server/reds.c @@ -224,11 +224,

Re: [Spice-devel] [PATCH spice-server 2/2] QXL devices must be registered before Stream Devices

2019-02-13 Thread Frediano Ziglio
> On Wed, 2019-02-13 at 09:19 -0500, Frediano Ziglio wrote: > > > > > > Stream devices assume that all QXL devices are registered with the > > > server before we receive any communications from the stream device. > > > This > > > is due to the fact that QXL display channel IDs are assigned > > > d

Re: [Spice-devel] [PATCH spice-server 2/2] QXL devices must be registered before Stream Devices

2019-02-13 Thread Jonathon Jongsma
On Wed, 2019-02-13 at 09:19 -0500, Frediano Ziglio wrote: > > > > Stream devices assume that all QXL devices are registered with the > > server before we receive any communications from the stream device. > > This > > is due to the fact that QXL display channel IDs are assigned > > directly > > fr

Re: [Spice-devel] [PATCH spice-server 2/2] QXL devices must be registered before Stream Devices

2019-02-13 Thread Frediano Ziglio
> > Stream devices assume that all QXL devices are registered with the > server before we receive any communications from the stream device. This > is due to the fact that QXL display channel IDs are assigned directly > from the QXL device ID, whereas Stream display channels are assigned > channel

Re: [Spice-devel] [PATCH spice-server 1/2] Fixup display info test

2019-02-13 Thread Frediano Ziglio
> > Rather than showing the expected data in raw format (ascii codes, etc), > which is hard to verify, show the characters themselves, and group them > by structure. > Thanks, I've been really lazy, I just dump, checked and copy&paste, this patch make it much better. > Also add a few more comme