Re: [Spice-devel] [PATCH spice-common v2 2/2] log: Force format in log macro to be a string

2017-06-29 Thread Christophe Fergeau
On Wed, Jun 21, 2017 at 01:30:09PM +0100, Frediano Ziglio wrote: > Make sure format is a string and not a pointer. Having a rationale in the commit log would be useful ("Why do we want to forbid that?") (I think the goal is to catch spice_debug(NULL)). This breaks (arguably corner cases) usecases

Re: [Spice-devel] [PATCH spice-common v2 1/2] log: Forbid the usage of obsolete SPICE_LOG_DOMAIN

2017-06-29 Thread Christophe Fergeau
On Wed, Jun 21, 2017 at 01:30:08PM +0100, Frediano Ziglio wrote: > As we decided to not use GLib domains do not allow the usage of I'd change the log to something like "As we decided to not use multiple GLib domains, the SPICE_LOG_DOMAIN macro is not really useful. This commit removes it" Apart

Re: [Spice-devel] [PATCH spice-gtk 2/2] spice-channel: Factor out code for storing caps

2017-06-29 Thread Christophe Fergeau
On Thu, Jun 29, 2017 at 12:38:36PM +0200, Pavel Grunt wrote: > Signed-off-by: Pavel Grunt > --- > src/spice-channel.c | 41 + > 1 file changed, 25 insertions(+), 16 deletions(-) > > diff --git a/src/spice-channel.c b/src/spice-channel.c > index b8cf19c..24

Re: [Spice-devel] [PATCH spice-gtk 1/2] spice-channel: Store the caps correctly

2017-06-29 Thread Christophe Fergeau
On Thu, Jun 29, 2017 at 12:38:35PM +0200, Pavel Grunt wrote: > The commit babe5630d5d3242b1d186cccdd5b4d51debe78e9 forgot to update > position of the caps pointer making remote caps to not be stored. > > That cause strange behavior in remote-viewer - it always opened window > for each remote displ

Re: [Spice-devel] [PATCH 0/2] nitpicking on streaming

2017-06-29 Thread Christophe Fergeau
For the series Acked-by: Christophe Fergeau On Thu, Jun 29, 2017 at 05:44:02PM +0200, Victor Toso wrote: > From: Victor Toso > > Not sure if by design we want to get rid of all access to private structure of > display-channel outside display-channel.c, see: > > $ grepi "display->priv" server

[Spice-devel] [PATCH 2/2] display-channel: introduce display_channel_get_nth_stream()

2017-06-29 Thread Victor Toso
From: Victor Toso To help avoid stream.c and dcc.c to access display-channel private structure to get the nth Stream structure pointer. Signed-off-by: Victor Toso --- server/dcc.c | 2 +- server/display-channel.c | 5 + server/display-channel.h | 1 + server/stream.c |

[Spice-devel] [PATCH 0/2] nitpicking on streaming

2017-06-29 Thread Victor Toso
From: Victor Toso Not sure if by design we want to get rid of all access to private structure of display-channel outside display-channel.c, see: $ grepi "display->priv" server/ | grep -v "display-channel\.c" server/dcc.c:308:surface = &display->priv->surfaces[surface_id]; server/dcc.c:325:

[Spice-devel] [PATCH 1/2] stream: use display_channel_get_stream_id()

2017-06-29 Thread Victor Toso
From: Victor Toso As we have a function for that, don't do the math elsewhere. Signed-off-by: Victor Toso --- server/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/stream.c b/server/stream.c index 838c6436..9a3a82d1 100644 --- a/server/stream.c +++ b/server

Re: [Spice-devel] [PATCH spice-gtk v4 6/7] display-gst: Use Playbin for GStreamer 1.9.0 onwards

2017-06-29 Thread Victor Toso
Hi, On Thu, Jun 29, 2017 at 04:35:30PM +0200, Christophe Fergeau wrote: > On Thu, Jun 29, 2017 at 01:58:07PM +0200, Victor Toso wrote: > > Hi, > > > > On Thu, Jun 29, 2017 at 10:59:16AM +0200, Pavel Grunt wrote: > > > On Wed, 2017-06-28 at 14:43 +0200, Victor Toso wrote: > > > > From: Victor Toso

Re: [Spice-devel] [PATCH spice-gtk v4 6/7] display-gst: Use Playbin for GStreamer 1.9.0 onwards

2017-06-29 Thread Christophe Fergeau
On Thu, Jun 29, 2017 at 01:58:07PM +0200, Victor Toso wrote: > Hi, > > On Thu, Jun 29, 2017 at 10:59:16AM +0200, Pavel Grunt wrote: > > On Wed, 2017-06-28 at 14:43 +0200, Victor Toso wrote: > > > From: Victor Toso > > > > > > The Playbin can provide the full pipeline which reduces the > > > over

Re: [Spice-devel] [PATCH spice-gtk v4 7/7] display-gst: Debug video pipeline on stream-start message

2017-06-29 Thread Victor Toso
Hi, On Thu, Jun 29, 2017 at 11:47:53AM +0200, Pavel Grunt wrote: > On Wed, 2017-06-28 at 14:43 +0200, Victor Toso wrote: > > From: Victor Toso > > > > On GST_MESSAGE_STREAM_START our stream is about to start and it > > seems > > a good moment to debug GStreamer pipeline if requested. > > > So thi

Re: [Spice-devel] [PATCH spice-gtk v4 6/7] display-gst: Use Playbin for GStreamer 1.9.0 onwards

2017-06-29 Thread Victor Toso
Hi, On Thu, Jun 29, 2017 at 10:59:16AM +0200, Pavel Grunt wrote: > On Wed, 2017-06-28 at 14:43 +0200, Victor Toso wrote: > > From: Victor Toso > > > > The Playbin can provide the full pipeline which reduces the > > overall maintenance in the code as we don't need to track which > > decoder can w

[Spice-devel] [PATCH spice-gtk 1/2] spice-channel: Store the caps correctly

2017-06-29 Thread Pavel Grunt
The commit babe5630d5d3242b1d186cccdd5b4d51debe78e9 forgot to update position of the caps pointer making remote caps to not be stored. That cause strange behavior in remote-viewer - it always opened window for each remote display. Signed-off-by: Victor Toso Signed-off-by: Pavel Grunt --- the li

[Spice-devel] [PATCH spice-gtk 2/2] spice-channel: Factor out code for storing caps

2017-06-29 Thread Pavel Grunt
Signed-off-by: Pavel Grunt --- src/spice-channel.c | 41 + 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/src/spice-channel.c b/src/spice-channel.c index b8cf19c..2422811 100644 --- a/src/spice-channel.c +++ b/src/spice-channel.c @@ -1884,1

Re: [Spice-devel] [PATCH spice-gtk v4 7/7] display-gst: Debug video pipeline on stream-start message

2017-06-29 Thread Pavel Grunt
On Wed, 2017-06-28 at 14:43 +0200, Victor Toso wrote: > From: Victor Toso > > On GST_MESSAGE_STREAM_START our stream is about to start and it > seems > a good moment to debug GStreamer pipeline if requested. > So this is just for the debug purpose. > That we can do with GST_DEBUG_BIN_TO_DOT_FI

Re: [Spice-devel] [PATCH spice-gtk v4 6/7] display-gst: Use Playbin for GStreamer 1.9.0 onwards

2017-06-29 Thread Pavel Grunt
On Wed, 2017-06-28 at 14:43 +0200, Victor Toso wrote: > From: Victor Toso > > The Playbin can provide the full pipeline which reduces the > overall maintenance in the code as we don't need to track which > decoder can work with our stream type. > > We need to maintain the GstCaps per SPICE_VIDEO

Re: [Spice-devel] [PATCH spice-gtk v4 1/7] display-gst: check codec type before creating decoder

2017-06-29 Thread Pavel Grunt
On Wed, 2017-06-28 at 14:42 +0200, Victor Toso wrote: > From: Victor Toso > > Inserting this check in channel-display-gst.c as the GStreamer > decoder > is the only one handling all the different video formats supported > by > spice-protocol. > > If a unsupported/bad codec type value was sent, s