[Spice-devel] [spice-gtk v2 1/2] channel-display-gst: style changes in create_pipeline

2016-10-19 Thread Victor Toso
From: Victor Toso Move declaration of variable to top and break big g_strdup_printf line. Signed-off-by: Victor Toso --- src/channel-display-gst.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git

[Spice-devel] [spice-gtk v2 2/2] channel-display-gst: use a static array for gst options

2016-10-19 Thread Victor Toso
From: Victor Toso Signed-off-by: Victor Toso --- src/channel-display-gst.c | 80 ++- 1 file changed, 44 insertions(+), 36 deletions(-) diff --git a/src/channel-display-gst.c b/src/channel-display-gst.c

[Spice-devel] [spice-gtk v2 0/2] gstvideo: small changes

2016-10-19 Thread Victor Toso
From: Victor Toso v2: - static assert in "channel-display-gst: use a static array for gst options" to check if array is in the correct size (frediano) - Don't need to use '&' to set the callback for GstAppSinkCallbacks in "channel-display-gst: style changes in

Re: [Spice-devel] [PATCH spice-server 12/12] Declare same enumerator in a single header

2016-10-19 Thread Jonathon Jongsma
Odd. Must have been a refactoring mixup. Acked-by: Jonathon Jongsma On Tue, 2016-10-18 at 10:09 +0100, Frediano Ziglio wrote: > Avoid having duplication and desynchronisation. > > Signed-off-by: Frediano Ziglio > --- >  server/cursor-channel-client.c

Re: [Spice-devel] [PATCH spice-server 11/12] Move monitors_config_ref inside red_monitors_config_item_new

2016-10-19 Thread Jonathon Jongsma
On Tue, 2016-10-18 at 10:09 +0100, Frediano Ziglio wrote: > Make move symmetric red_monitors_config_item_new and > red_monitors_config_item_free. This sentence is a little bit confusing. Perhaps: "This makes red_monitors_config_item_new() and red_monitors_config_item_free() symmetric"?

Re: [Spice-devel] [PATCH spice-server 09/12] Fix typo in comment

2016-10-19 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2016-10-18 at 10:09 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- >  server/red-channel.h | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/server/red-channel.h

Re: [Spice-devel] [PATCH spice-server 10/12] dcc: Use spice_new instead of spice_malloc

2016-10-19 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2016-10-18 at 10:09 +0100, Frediano Ziglio wrote: > spice_new return directly the correct type. > > Signed-off-by: Frediano Ziglio > --- >  server/dcc.c | 4 ++-- >  1 file changed, 2 insertions(+), 2 deletions(-) > >

Re: [Spice-devel] [PATCH spice-server 08/12] Do not declare image_encoders_compress_lz4 if LZ4 is not available

2016-10-19 Thread Jonathon Jongsma
I assume this is fixing a warning? Acked-by: Jonathon Jongsma On Tue, 2016-10-18 at 10:09 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- >  server/image-encoders.h | 2 ++ >  1 file changed, 2 insertions(+) > > diff --git

Re: [Spice-devel] [PATCH spice-server 07/12] Make compression image declarations more similar

2016-10-19 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2016-10-18 at 10:09 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- >  server/image-encoders.h | 9 - >  1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git

Re: [Spice-devel] [PATCH spice-server 06/12] Reuse SPICE_N_ELEMENTS macro

2016-10-19 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2016-10-18 at 10:09 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- >  server/red-worker.c | 4 ++-- >  1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/server/red-worker.c

Re: [Spice-devel] [PATCH spice-server 05/12] Make QXLMessage handling safe

2016-10-19 Thread Jonathon Jongsma
I think that a commit saying "Make X safe" really deserves a bit longer description about what was unsafe, whether it's easily reproducible, what the impact of the bug is, etc.   On Tue, 2016-10-18 at 10:09 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > ---

Re: [Spice-devel] [PATCH spice-server 04/12] Add reds_stat to compiled software

2016-10-19 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2016-10-18 at 10:09 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > Acked-by: Christophe Fergeau > --- >  Makefile.am   |  2 +- >  configure.ac  |  1 + >  

Re: [Spice-devel] [PATCH spice-server 1/2] Allows to use scripts for "make check"

2016-10-19 Thread Jonathon Jongsma
OK. Perhaps a bit more explicit description would be useful, since I was also slightly confused.  something like: Allow both compiled and non-compiled tests to be used with "make check". Compiled tests should be added to check_PROGRAMS, and scripts that do not need to be built should be added to

Re: [Spice-devel] [PATCH spice-server 10/10] RFC: Make code compile using RHEL 6

2016-10-19 Thread Jonathon Jongsma
Personally I'd rather keep this sort of thing as a downstream patch. It makes things less consistent. I'd like to be able to assume that if I include main-channel-client.h, the MainChannelClient typedef will be defined, for example. On Mon, 2016-10-17 at 14:26 +0100, Frediano Ziglio wrote: >

[Spice-devel] [PATCH] !fixup red-worker: Do not include not necessary red-channel-client.h

2016-10-19 Thread Jonathon Jongsma
--- I need this additional change to get master to compile server/red-qxl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server/red-qxl.c b/server/red-qxl.c index e517b41..fa51195 100644 --- a/server/red-qxl.c +++ b/server/red-qxl.c @@ -36,6 +36,7 @@ #include "reds.h" #include

Re: [Spice-devel] [spice-protocol v1] enums: Move auto generated SpiceDataCompressionType

2016-10-19 Thread Victor Toso
Hi, On Wed, Oct 19, 2016 at 03:40:18PM -0500, Jonathon Jongsma wrote: > On Tue, 2016-10-18 at 14:59 +0200, Victor Toso wrote: > > From: Victor Toso > > > > This header is auto generated from spice_codegen.py tool in > > spice-common repository and thus, it changes what was

Re: [Spice-devel] [spice-gtk v1 3/4] channel-display-gst: improve check for decoder element

2016-10-19 Thread Victor Toso
Hi, On Wed, Oct 19, 2016 at 06:26:18PM +0200, Francois Gouget wrote: > On Wed, 19 Oct 2016, Victor Toso wrote: > [...] > > > But I don't think this necessarily impacts gstvideo_has_codec() if > > > implemented using create_gstreamer_decoder() whereas with your code it > > > will necessarily be

Re: [Spice-devel] [PATCH spice-server 08/10] Include main-channel-client.h where MainChannelClient is used

2016-10-19 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Mon, 2016-10-17 at 14:26 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- >  server/dcc.c  | 1 + >  server/main-channel.c | 3 ++- >  server/red-qxl.c  | 1 + >  server/reds.c | 1 + >  

Re: [Spice-devel] [PATCH spice-server 07/10] Avoid to typedef twice RedChannel and RedClient

2016-10-19 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Mon, 2016-10-17 at 14:26 +0100, Frediano Ziglio wrote: > These are already defined in red-channel.h which is included in > red-channel-client.h header. > > Signed-off-by: Frediano Ziglio > --- >  

Re: [Spice-devel] [spice-protocol v1] enums: Move auto generated SpiceDataCompressionType

2016-10-19 Thread Jonathon Jongsma
On Tue, 2016-10-18 at 14:59 +0200, Victor Toso wrote: > From: Victor Toso > > This header is auto generated from spice_codegen.py tool in > spice-common repository and thus, it changes what was included > manually. I'm afraid I don't really understand this description. >

Re: [Spice-devel] [PATCH spice-server] Remove unused InputsChannelPrivate typedef

2016-10-19 Thread Jonathon Jongsma
On Tue, 2016-10-18 at 12:17 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- >  server/inputs-channel.h | 1 - >  1 file changed, 1 deletion(-) > > diff --git a/server/inputs-channel.h b/server/inputs-channel.h > index 4bae61f..26569fa 100644 > ---

Re: [Spice-devel] [PATCH qxl-wddm-dod] Indicate all Qxl devices as VGA

2016-10-19 Thread Frediano Ziglio
> Currently the qxl device with id 0 is being set as an internal display > while all the rest are set as VGA connector. This commit solves this > issue that was discussed in detail here: > https://bugzilla.redhat.com/show_bug.cgi?id=1314600 > > Signed-off-by: Sameeh Jubran

Re: [Spice-devel] [spice-gtk v1 3/4] channel-display-gst: improve check for decoder element

2016-10-19 Thread Francois Gouget
On Wed, 19 Oct 2016, Victor Toso wrote: [...] > > But I don't think this necessarily impacts gstvideo_has_codec() if > > implemented using create_gstreamer_decoder() whereas with your code it > > will necessarily be impacted. > > Well, my point is simply why create the whole pipeline if we only

[Spice-devel] [client v2 07/10] audio: Remove spice_audio_new() from the public header

2016-10-19 Thread Francois Gouget
It has been deprecated for long enough. Signed-off-by: Francois Gouget --- src/spice-audio-priv.h | 2 ++ src/spice-audio.h | 5 - src/spice-session.c| 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/spice-audio-priv.h

[Spice-devel] [client v2 05/10] build-sys: Remove SPICE_NO_DEPRECATED

2016-10-19 Thread Francois Gouget
Deprecation warnings no longer cause compilation errors. Also they should either be fixed or ignored with G_GNUC_{BEGIN,END}_IGNORE_DEPRECATIONS. Signed-off-by: Francois Gouget --- src/Makefile.am | 1 - src/spice-util.h | 12 +++- 2 files changed, 3

[Spice-devel] [client v2 03/10] spicy: Avoid gtk_hbutton_box_new(); it is deprecated

2016-10-19 Thread Francois Gouget
Spice-Gtk requires GTK+ > 3.12 which has gtk_button_box_new(). Signed-off-by: Francois Gouget --- src/spicy-connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spicy-connect.c b/src/spicy-connect.c index a1d895a..915eb06 100644 ---

[Spice-devel] [client v2 08/10] gtk: Temporarily ignore the keyboard/mouse grabbing deprecation warnings

2016-10-19 Thread Francois Gouget
Signed-off-by: Francois Gouget --- src/spice-widget.c | 24 1 file changed, 24 insertions(+) diff --git a/src/spice-widget.c b/src/spice-widget.c index 82adacf..f0681d6 100644 --- a/src/spice-widget.c +++ b/src/spice-widget.c @@ -812,6 +812,9 @@

[Spice-devel] [client v2 01/10] gtk: Ignore GLib's too-new warnings where we explicitly check its version

2016-10-19 Thread Francois Gouget
Signed-off-by: Francois Gouget --- src/spice-gtk-session.c | 5 + src/spice-widget-egl.c | 3 +++ src/spice-widget.c | 6 ++ 3 files changed, 14 insertions(+) diff --git a/src/spice-gtk-session.c b/src/spice-gtk-session.c index 3e0ec74..7ec2a57 100644 ---

[Spice-devel] [client v2 04/10] spicy: GtkTable is deprecated so use GtkGrid instead

2016-10-19 Thread Francois Gouget
Signed-off-by: Francois Gouget --- src/spicy-connect.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/spicy-connect.c b/src/spicy-connect.c index 915eb06..39555a6 100644 --- a/src/spicy-connect.c +++ b/src/spicy-connect.c @@

[Spice-devel] [client v2 06/10] build-sys: Use spice-protocol's deprecation macros

2016-10-19 Thread Francois Gouget
Signed-off-by: Francois Gouget --- src/spice-channel.h | 5 +++-- src/spice-util.h | 2 -- src/usb-device-manager.h | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/spice-channel.h b/src/spice-channel.h index 3b0bffb..aa0d9cb 100644

[Spice-devel] [client v2 10/10] build-sys: Enable deprecation warnings instead of ignoring them entirely

2016-10-19 Thread Francois Gouget
For Spice-gtk most deprecation issues come from changes outside Spice (GLib) and thus should not be treated as errors to not break compilation for users who have newer third-party libraries. However they must be visible otherwise Spice developers will not be aware of them and thus will not fix

[Spice-devel] [client v2 09/10] spicy: Temporarily ignore deprecation warnings

2016-10-19 Thread Francois Gouget
GtkAction and lots of GtkUI APIs are deprecated. Signed-off-by: Francois Gouget --- src/spicy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spicy.c b/src/spicy.c index c502428..c4a6c7d 100644 --- a/src/spicy.c +++ b/src/spicy.c @@ -38,6 +38,9 @@

[Spice-devel] [client v2 02/10] spicy: Avoid gtk_vbox_new(); it is deprecated

2016-10-19 Thread Francois Gouget
Spice-Gtk requires GTK+ > 3.12 which has gtk_box_new(). Signed-off-by: Francois Gouget --- src/spicy-connect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spicy-connect.c b/src/spicy-connect.c index c471df5..a1d895a 100644 ---

[Spice-devel] [client v2 00/10] Deprecation warning cleanup

2016-10-19 Thread Francois Gouget
This is v2 of the following patchset: https://lists.freedesktop.org/archives/spice-devel/2016-October/032797.html Changes since v1: * I have put the patch that enables the deprecation warnings last so compiling does not generate warnings at any point. But really all the patches are

Re: [Spice-devel] [PATCH spice-server 01/12] Remove red_pipe_add_verb family function

2016-10-19 Thread Frediano Ziglio
> > It seems that > > On Tue, 2016-10-18 at 10:09 +0100, Frediano Ziglio wrote: > > These functions were implementing the same stuff as empty > > messages functions provided by RedChannel so reuse them. > > > > The implementation seems a bit different but the result > > is the same.

[Spice-devel] [PATCH qxl-wddm-dod] Indicate all Qxl devices as VGA

2016-10-19 Thread Sameeh Jubran
This patch solves this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1314600 After applying this patch the "UEFI GOP mode" test passed successfully but only when setting the preferred boot resolution to 1024x768 in the OVMF platform configuration screen. Sameeh Jubran (1): Indicate all Qxl

[Spice-devel] [PATCH qxl-wddm-dod] Indicate all Qxl devices as VGA

2016-10-19 Thread Sameeh Jubran
Currently the qxl device with id 0 is being set as an internal display while all the rest are set as VGA connector. This commit solves this issue that was discussed in detail here: https://bugzilla.redhat.com/show_bug.cgi?id=1314600 Signed-off-by: Sameeh Jubran ---

Re: [Spice-devel] [spice-gtk v1 3/4] channel-display-gst: improve check for decoder element

2016-10-19 Thread Victor Toso
Hi, On Wed, Oct 19, 2016 at 04:43:12PM +0200, Francois Gouget wrote: > On Wed, 19 Oct 2016, Victor Toso wrote: > [...] > > > In a different context I have found that I can fnid dfbvideosink and > > > even instantiate it. But it will refuse to switch to the READY state and > > > is thus unusable.

Re: [Spice-devel] [client 00/10] Deprecation warning cleanup

2016-10-19 Thread Victor Toso
Hi, On Wed, Oct 19, 2016 at 04:57:31PM +0200, Francois Gouget wrote: > > > RFC: gtk: Temporarily ignore the keyboard/mouse grabbing deprecation > > > warnings > > > RFC: spicy: Temporarily ignore deprecation warnings > > > > > > These two really just silence warnings that should be fixed. So

Re: [Spice-devel] [client 00/10] Deprecation warning cleanup

2016-10-19 Thread Francois Gouget
On Wed, 19 Oct 2016, Victor Toso wrote: [...] > > This one may be somewhat questionable since it spice-protocol's macros > > don't use GLib's helpers and thus don't support Clang and Visual C++. > > This means we may locally disable these warnings with > > G_GNUC_BEGIN_IGNORE_DEPRECATIONS when

Re: [Spice-devel] [spice-gtk v1 3/4] channel-display-gst: improve check for decoder element

2016-10-19 Thread Francois Gouget
On Wed, 19 Oct 2016, Victor Toso wrote: [...] > > In a different context I have found that I can fnid dfbvideosink and > > even instantiate it. But it will refuse to switch to the READY state and > > is thus unusable. That makes sense since I was not using it in a Direct > > FB context. > >

Re: [Spice-devel] [PATCH spice-server 2/2] RFC: Add an helper to test VideoEncoder

2016-10-19 Thread Victor Toso
Hi, On Wed, Oct 19, 2016 at 04:23:23PM +0200, Victor Toso wrote: > Hi, > > On Wed, Oct 19, 2016 at 02:49:38PM +0100, Frediano Ziglio wrote: > > Add an utility to make possible to check various features of > > VideoEncoder. > > 2 GStreamer plugins are used in a chain like this: > > (1) input

Re: [Spice-devel] [PATCH spice-server 2/2] RFC: Add an helper to test VideoEncoder

2016-10-19 Thread Victor Toso
Hi, On Wed, Oct 19, 2016 at 02:49:38PM +0100, Frediano Ziglio wrote: > Add an utility to make possible to check various features of > VideoEncoder. > 2 GStreamer plugins are used in a chain like this: > (1) input pipeline -> (2) video encoder -> (3) output pipeline > While converting output

Re: [Spice-devel] [PATCH spice-server 1/2] Allows to use scripts for "make check"

2016-10-19 Thread Frediano Ziglio
> > Sorry, what do you mean ? > Currently all the executable that compose the test list must be compiled. This as check_PROGRAMS == TESTS. If you have TESTS = test1 test2 check_PROGRAMS = test1 "make check" will compile test1 and run test1 and test2 as tests. But if you add test2 to

Re: [Spice-devel] [PATCH spice-server 1/2] Allows to use scripts for "make check"

2016-10-19 Thread Pavel Grunt
Sorry, what do you mean ? On Wed, 2016-10-19 at 14:49 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- >  server/tests/Makefile.am | 7 --- >  1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/server/tests/Makefile.am

[Spice-devel] [PATCH spice-server 2/2] RFC: Add an helper to test VideoEncoder

2016-10-19 Thread Frediano Ziglio
Add an utility to make possible to check various features of VideoEncoder. 2 GStreamer plugins are used in a chain like this: (1) input pipeline -> (2) video encoder -> (3) output pipeline While converting output from (1) is compared with output of (3) making sure the streaming is working

[Spice-devel] [PATCH spice-server 1/2] Allows to use scripts for "make check"

2016-10-19 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/tests/Makefile.am | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/tests/Makefile.am b/server/tests/Makefile.am index 17a06e8..8580a9a 100644 --- a/server/tests/Makefile.am +++

Re: [Spice-devel] [client 00/10] Deprecation warning cleanup

2016-10-19 Thread Victor Toso
Hi, On Wed, Oct 19, 2016 at 02:57:39PM +0200, Victor Toso wrote: > I recall that Christophe commented about the spice macros but I failed > to find it. Just for reference: https://lists.freedesktop.org/archives/spice-devel/2016-September/031601.html signature.asc Description: PGP signature

Re: [Spice-devel] [client 00/10] Deprecation warning cleanup

2016-10-19 Thread Victor Toso
Hi, On Tue, Oct 18, 2016 at 07:46:34PM +0200, Francois Gouget wrote: > > This is another take on trying to clean up the deprecation warning > situation in Spice-Gtk. Many thanks :) > > Let me know if it goes in the right direction. > > > With this patchset deprecation warnings are enabled again

Re: [Spice-devel] [client 08/10] session: Disable the spice_audio_new() deprecation warning

2016-10-19 Thread Victor Toso
Hi, On Tue, Oct 18, 2016 at 07:47:12PM +0200, Francois Gouget wrote: > Third parties are not supposed to use spice_audio_new() anymore, but > internally it is used to implement its replacement, spice_audio_get(). > > Signed-off-by: Francois Gouget This was deprecated in

Re: [Spice-devel] [PATCH spice-gtk] test-session: Fix comparision

2016-10-19 Thread Victor Toso
Hi, On Wed, Oct 19, 2016 at 02:35:59PM +0200, Pavel Grunt wrote: > The test was not executed because G_N_ELEMENTS is 0 for the pointer Acked-by: Victor Toso > --- > tests/session.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/session.c

[Spice-devel] [PATCH spice-gtk] test-session: Fix comparision

2016-10-19 Thread Pavel Grunt
The test was not executed because G_N_ELEMENTS is 0 for the pointer --- tests/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/session.c b/tests/session.c index 09856b3..7ed4a41 100644 --- a/tests/session.c +++ b/tests/session.c @@ -170,7 +170,7 @@ static void

Re: [Spice-devel] [spice-gtk v1 1/4] channel-display-gst: style changes in create_pipeline

2016-10-19 Thread Victor Toso
Hi, On Wed, Oct 19, 2016 at 06:26:17AM -0400, Frediano Ziglio wrote: > > > > From: Victor Toso > > > > Move declaration of variable to top and break big g_strdup_printf > > line. > > > > Signed-off-by: Victor Toso > > --- > >

Re: [Spice-devel] [spice-gtk v1 3/4] channel-display-gst: improve check for decoder element

2016-10-19 Thread Victor Toso
Hey, On Wed, Oct 19, 2016 at 12:42:34PM +0200, Victor Toso wrote: > Hi, > > On Wed, Oct 19, 2016 at 12:11:53PM +0200, Francois Gouget wrote: > > On Tue, 18 Oct 2016, Victor Toso wrote: > > [...] > > > +elements = g_strsplit(gst_opts[codec_type].dec_name, "!", 0); > > > > This would not work

Re: [Spice-devel] [spice-gtk v1 4/4] channel-display-gst: early return if gst_init failed

2016-10-19 Thread Pavel Grunt
On Wed, 2016-10-19 at 13:31 +0200, Pavel Grunt wrote: > Hey, > > On Tue, 2016-10-18 at 23:27 +0200, Victor Toso wrote: > > From: Victor Toso > > > > If gst_init() fails, gstvideo_init() will warn once about the > > issue > > and never attempt to try again, which is probably

Re: [Spice-devel] [spice-gtk v1 4/4] channel-display-gst: early return if gst_init failed

2016-10-19 Thread Pavel Grunt
Hey, On Tue, 2016-10-18 at 23:27 +0200, Victor Toso wrote: > From: Victor Toso > > If gst_init() fails, gstvideo_init() will warn once about the issue > and never attempt to try again, which is probably fine. > > All the other APIs that might be called such as >

Re: [Spice-devel] [spice-gtk v1 2/4] channel-display-gst: use a static array for gst options

2016-10-19 Thread Victor Toso
Hi, On Wed, Oct 19, 2016 at 06:28:33AM -0400, Frediano Ziglio wrote: > > > > From: Victor Toso > > > > Signed-off-by: Victor Toso > > --- > > src/channel-display-gst.c | 78 > > +-- > > 1 file changed, 42

Re: [Spice-devel] [spice-gtk v1 3/4] channel-display-gst: improve check for decoder element

2016-10-19 Thread Victor Toso
Hi, On Wed, Oct 19, 2016 at 12:11:53PM +0200, Francois Gouget wrote: > On Tue, 18 Oct 2016, Victor Toso wrote: > [...] > > +elements = g_strsplit(gst_opts[codec_type].dec_name, "!", 0); > > This would not work if one of the elements takes options. > (not the case right now but if we can keep

Re: [Spice-devel] [spice-gtk v1 2/4] channel-display-gst: use a static array for gst options

2016-10-19 Thread Frediano Ziglio
> > From: Victor Toso > > Signed-off-by: Victor Toso > --- > src/channel-display-gst.c | 78 > +-- > 1 file changed, 42 insertions(+), 36 deletions(-) > > diff --git a/src/channel-display-gst.c

Re: [Spice-devel] [spice-gtk v1 1/4] channel-display-gst: style changes in create_pipeline

2016-10-19 Thread Frediano Ziglio
> > From: Victor Toso > > Move declaration of variable to top and break big g_strdup_printf > line. > > Signed-off-by: Victor Toso > --- > src/channel-display-gst.c | 13 ++--- > 1 file changed, 10 insertions(+), 3 deletions(-) > > diff

Re: [Spice-devel] [spice-gtk v1 3/4] channel-display-gst: improve check for decoder element

2016-10-19 Thread Francois Gouget
On Tue, 18 Oct 2016, Victor Toso wrote: [...] > +elements = g_strsplit(gst_opts[codec_type].dec_name, "!", 0); This would not work if one of the elements takes options. (not the case right now but if we can keep the option open) > +for (i = 0; elements[i] != NULL; i++) { > +

Re: [Spice-devel] [client 01/10] build-sys: Enable deprecation warnings instead of ignoring them entirely

2016-10-19 Thread Francois Gouget
On Wed, 19 Oct 2016, Pavel Grunt wrote: > Hi, > > this should be the last patch to avoid any compilation issues Note that this does not create any compilation errors, only compilation warnings. So putting it first will not break compilation and will show the warnings being fixed as each other