Re: [Spice-devel] [PATCH spice-gtk 4/5] gtk: rename spicex_* functions

2016-05-24 Thread Pavel Grunt
On Tue, 2016-05-24 at 21:31 +0200, Marc-André Lureau wrote: > spice-gtk used to have x11/shm backend, now it's only cairo > > Signed-off-by: Marc-André Lureau Acked-by: Pavel Grunt > --- >  src/spice-widget-cairo.c |  8 >  src/spice-widget-priv.h  |  8 >  src/spice-widget.c

Re: [Spice-devel] [PATCH spice-gtk 5/5] egl: fix delayed widget realize

2016-05-24 Thread Pavel Grunt
On Tue, 2016-05-24 at 21:31 +0200, Marc-André Lureau wrote: > When the display is not yet realized, spice_display_widget_gl_scanout() > will fail because the egl context is not ready. The display is never > marked ready because the egl.image (and egl.scanout) is not set, and > some clients, such as

Re: [Spice-devel] [PATCH spice-gtk 1/5] display: lower to debug gstreamer codec support

2016-05-24 Thread Pavel Grunt
On Tue, 2016-05-24 at 21:31 +0200, Marc-André Lureau wrote: > Signed-off-by: Marc-André Lureau Acked-by: Pavel Grunt > --- >  src/channel-display.c | 6 +++--- >  1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/src/channel-display.c b/src/channel-display.c > index a301e67..3ee515

Re: [Spice-devel] [PATCH spice-gtk 1/2] file-trasfer-task: Protect header include

2016-05-24 Thread Fabiano Fidêncio
On Wed, May 25, 2016 at 7:30 AM, Pavel Grunt wrote: > As stated in the commit d2f33178c40ac51b1c8b1bf796a328631d9869c7 Glib > applications should only include "spice-client.h". > --- > src/spice-file-transfer-task.h | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/src/spice-file-tra

[Spice-devel] [PATCH spice-gtk 2/2] file-transfer-task: Hide internals of SpiceFileTransferTask

2016-05-24 Thread Pavel Grunt
--- doc/reference/spice-gtk-sections.txt | 4 ++-- src/channel-main.c | 24 src/spice-file-transfer-task.h | 23 --- 3 files changed, 26 insertions(+), 25 deletions(-) diff --git a/doc/reference/spice-gtk-sections.txt b/doc/re

[Spice-devel] [PATCH spice-gtk 1/2] file-trasfer-task: Protect header include

2016-05-24 Thread Pavel Grunt
As stated in the commit d2f33178c40ac51b1c8b1bf796a328631d9869c7 Glib applications should only include "spice-client.h". --- src/spice-file-transfer-task.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/spice-file-transfer-task.h b/src/spice-file-transfer-task.h index 18dc509..fba13

Re: [Spice-devel] [PATCH 5/7] RedChannel: Add FOREACH_CLIENT and use it to iterate

2016-05-24 Thread Jonathon Jongsma
On Sun, 2016-05-22 at 04:02 -0400, Frediano Ziglio wrote: > > > > Remove the custom FOREACH_DCC macro and use the more generic > > FOREACH_CLIENT macro and use it for all channels. > > --- > > server/display-channel.c | 20 ++-- > > server/display-channel.h | 9 - > > ser

Re: [Spice-devel] [PATCH 2/4] Move RedCacheItem size field inside cache_data union

2016-05-24 Thread Jonathon Jongsma
Oops. one minor problem. Typo in commit log: clean -> clear On Tue, 2016-05-24 at 15:09 -0500, Jonathon Jongsma wrote: > OK. But this is a pretty odd struct... > > Acked-by: Jonathon Jongsma > > > > On Tue, 2016-05-24 at 15:55 +0100, Frediano Ziglio wrote: > > This reduce a bit the structure

Re: [Spice-devel] [PATCH spice-gtk] spice-widget: Use correct enum value

2016-05-24 Thread Marc-André Lureau
ack - Original Message - > GDK_GRAB_BROKEN is not GdkGrabStatus value, but GdkEventType > --- > src/spice-widget.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/spice-widget.c b/src/spice-widget.c > index cbca5dc..e337321 100644 > --- a/src/spice-widget.c >

[Spice-devel] [PATCH spice-gtk] spice-widget: Use correct enum value

2016-05-24 Thread Pavel Grunt
GDK_GRAB_BROKEN is not GdkGrabStatus value, but GdkEventType --- src/spice-widget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spice-widget.c b/src/spice-widget.c index cbca5dc..e337321 100644 --- a/src/spice-widget.c +++ b/src/spice-widget.c @@ -934,7 +934,7 @@ static

Re: [Spice-devel] [PATCH 2/4] Move RedCacheItem size field inside cache_data union

2016-05-24 Thread Jonathon Jongsma
OK. But this is a pretty odd struct... Acked-by: Jonathon Jongsma On Tue, 2016-05-24 at 15:55 +0100, Frediano Ziglio wrote: > This reduce a bit the structure size and make clean that > the field is used only when the item is a cache item. > > Signed-off-by: Frediano Ziglio > --- > server/ca

Re: [Spice-devel] [PATCH 4/4] Remove potentially unsafe casts

2016-05-24 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2016-05-24 at 15:55 +0100, Frediano Ziglio wrote: > The id type is already uint64_t, no need to cast using some low > level casts. > > Signed-off-by: Frediano Ziglio > --- > server/cursor-channel.c | 2 +- > server/dcc-send.c | 2 +- > 2 files changed,

Re: [Spice-devel] [PATCH 3/4] Remove unused macro definitions

2016-05-24 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2016-05-24 at 15:55 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > server/cache-item.tmpl.c | 4 > 1 file changed, 4 deletions(-) > > diff --git a/server/cache-item.tmpl.c b/server/cache-item.tmpl.c > index 9a9181c..2e6f5ca 100644

Re: [Spice-devel] [PATCH 1/4] Remove not necessary inval_type from RedCacheItem

2016-05-24 Thread Jonathon Jongsma
Weird. I thought I remembered doing something similar to this in the past but I must be misremembering... Acked-by: Jonathon Jongsma On Tue, 2016-05-24 at 15:55 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > server/cache-item.h | 1 - > server/cache-item.tmpl.c |

Re: [Spice-devel] [Qemu-devel] [PATCH v2 10/12] spice/gl: create dummy primary surface (RfC)

2016-05-24 Thread Marc-André Lureau
Hi - Original Message - > On Mo, 2016-05-23 at 16:03 +0200, Marc-André Lureau wrote: > > Hi > > > > On Mon, May 23, 2016 at 3:52 PM, Gerd Hoffmann wrote: > > > Hi, > > > > > > Resuming to work on this after 2.6 freeze break ... > > > > > >> I have done some more testing and sent a seri

[Spice-devel] [PATCH spice-gtk 4/5] gtk: rename spicex_* functions

2016-05-24 Thread Marc-André Lureau
spice-gtk used to have x11/shm backend, now it's only cairo Signed-off-by: Marc-André Lureau --- src/spice-widget-cairo.c | 8 src/spice-widget-priv.h | 8 src/spice-widget.c | 27 +-- 3 files changed, 21 insertions(+), 22 deletions(-) diff --g

[Spice-devel] [PATCH spice-gtk 5/5] egl: fix delayed widget realize

2016-05-24 Thread Marc-André Lureau
When the display is not yet realized, spice_display_widget_gl_scanout() will fail because the egl context is not ready. The display is never marked ready because the egl.image (and egl.scanout) is not set, and some clients, such as virt-viewer will not realize the widget until the display is ready.

[Spice-devel] [PATCH spice-gtk 2/5] widget: move canvas related data in its own structure

2016-05-24 Thread Marc-André Lureau
Group canvas related data to a sub-structure. Signed-off-by: Marc-André Lureau --- src/spice-widget-cairo.c | 40 +++-- src/spice-widget-priv.h | 17 ++--- src/spice-widget.c | 65 +--- 3 files changed, 64 inserti

[Spice-devel] [PATCH spice-gtk 3/5] egl: bind the scanout texture

2016-05-24 Thread Marc-André Lureau
Fix regression from commit 3539ac6212d506128bd38aad032e0363e78cb4f6. Signed-off-by: Marc-André Lureau --- src/spice-widget-egl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/spice-widget-egl.c b/src/spice-widget-egl.c index c60765c..1557fdc 100644 --- a/src/spice-widget-egl.c +++ b/sr

[Spice-devel] [PATCH spice-gtk 1/5] display: lower to debug gstreamer codec support

2016-05-24 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau --- src/channel-display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/channel-display.c b/src/channel-display.c index a301e67..3ee515b 100644 --- a/src/channel-display.c +++ b/src/channel-display.c @@ -724,19 +724,19 @@ static voi

[Spice-devel] [PATCH] Fix build warning when RED_WORKER_STAT is undefined

2016-05-24 Thread Jonathon Jongsma
since display_channel_print_stats is now static, the compiler complains when RED_WORKER_STAT is undefined since this function is not used: ../../server/display-channel.c:853:13: error: 'display_channel_print_stats' defined but not used [-Werror=unused-function] To fix, don't define the funct

Re: [Spice-devel] [spice v13 03/29] server: Add a GStreamer 1.0 MJPEG video encoder and use it by default

2016-05-24 Thread Francois Gouget
On Fri, 13 May 2016, Christophe Fergeau wrote: [...] > Yeah, the only reason for these questions is to know whether a malicious > client could trigger misbehaviour in this part of the code by sending us > some unexpected data. I agree when all is good, this does not make > sense/should not happen,

[Spice-devel] [PATCH] char-device.h: add needed headers

2016-05-24 Thread Jonathon Jongsma
Include spice-common headers for types that are used directly in the RedCharDevice header. --- These includes are not currently needed -- they get pulled in by the red-channel.h include. But if we decide in the future to remove the red-channel.h include here and use forward declarations (e.g. to re

Re: [Spice-devel] [PATCH spice-gtk 2/2] Update spice-common submodule

2016-05-24 Thread Frediano Ziglio
> > Fixes lz decompression crash: > https://bugzilla.redhat.com/show_bug.cgi?id=1285469 > > Christophe Fergeau (5): > Remove 2 unused vfuncs from client_marshallers.h > tests: Fix glib version check > log: Clamp SPICE_DEBUG_LEVEL if it's too high > log: Use SPICE_CONSTRUCT

Re: [Spice-devel] [PATCH spice-gtk 0/2] Minor updates before the next release

2016-05-24 Thread Marc-André Lureau
ack series - Original Message - > Mainly to include the fix for the lz decompression crash: > https://bugzilla.redhat.com/show_bug.cgi?id=1285469 > > Pavel Grunt (2): > Update .mailmap > Update spice-common submodule > > .mailmap | 11 +-- > spice-common | 2 +- > 2 fil

[Spice-devel] [PATCH spice-gtk 2/2] Update spice-common submodule

2016-05-24 Thread Pavel Grunt
Fixes lz decompression crash: https://bugzilla.redhat.com/show_bug.cgi?id=1285469 Christophe Fergeau (5): Remove 2 unused vfuncs from client_marshallers.h tests: Fix glib version check log: Clamp SPICE_DEBUG_LEVEL if it's too high log: Use SPICE_CONSTRUCTOR_FUNC log:

[Spice-devel] [PATCH spice-gtk 0/2] Minor updates before the next release

2016-05-24 Thread Pavel Grunt
Mainly to include the fix for the lz decompression crash: https://bugzilla.redhat.com/show_bug.cgi?id=1285469 Pavel Grunt (2): Update .mailmap Update spice-common submodule .mailmap | 11 +-- spice-common | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) -- 2.8.3

[Spice-devel] [PATCH spice-gtk 1/2] Update .mailmap

2016-05-24 Thread Pavel Grunt
--- .mailmap | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.mailmap b/.mailmap index f7fdf30..5893260 100644 --- a/.mailmap +++ b/.mailmap @@ -3,6 +3,13 @@ - +Marc-André Lureau + Tiziano Müller -Dietmar Maurer \ No newline at end of file +Dietmar

[Spice-devel] [PATCH] RFC: Allow multiple typedefs

2016-05-24 Thread Jonathon Jongsma
Since recent version of GCC allow multiple typedefs of the same name as long as it refers to the same type, we can avoid some of the typedef/header issues if we just decide to require a version of gcc that allows this behavior. This is also valid according ot the C11 standard. I don't know exactly

Re: [Spice-devel] [PATCH v2] cache-item.h: remove unnecessary channel include

2016-05-24 Thread Frediano Ziglio
> > It's only necessary to include red-pipe-item.h > --- > server/cache-item.h | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/server/cache-item.h b/server/cache-item.h > index d14e9a3..f13a69a 100644 > --- a/server/cache-item.h > +++ b/server/cache-item.h > @@ -19,8 +

[Spice-devel] [PATCH v2] cache-item.h: remove unnecessary channel include

2016-05-24 Thread Jonathon Jongsma
It's only necessary to include red-pipe-item.h --- server/cache-item.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/cache-item.h b/server/cache-item.h index d14e9a3..f13a69a 100644 --- a/server/cache-item.h +++ b/server/cache-item.h @@ -19,8 +19,7 @@ # define CACHE

Re: [Spice-devel] [spice-gtk] channel-main: Fix 'capabilties' typo

2016-05-24 Thread Frediano Ziglio
> > This was mispelt in a static function name. > --- > src/channel-main.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/src/channel-main.c b/src/channel-main.c > index dec5d73..94ece97 100644 > --- a/src/channel-main.c > +++ b/src/channel-main.c > @@ -274,7 +274

Re: [Spice-devel] [PATCH] cache-item.h: remove unnecessary include

2016-05-24 Thread Frediano Ziglio
> > --- > server/cache-item.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/server/cache-item.h b/server/cache-item.h > index d14e9a3..82cfe26 100644 > --- a/server/cache-item.h > +++ b/server/cache-item.h > @@ -20,8 +20,6 @@ > > #include > > -#include "red-channel.h" > - > ty

Re: [Spice-devel] [PATCH] AgentMsgFilter: use typedef

2016-05-24 Thread Frediano Ziglio
> > Instead of using the full 'struct AgentMsgFilter', use the typedef name > --- > server/agent-msg-filter.c | 6 +++--- > server/agent-msg-filter.h | 6 +++--- > 2 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/server/agent-msg-filter.c b/server/agent-msg-filter.c > index 25ed

Re: [Spice-devel] typedefs and header dependencies

2016-05-24 Thread Uri Lublin
On 05/24/2016 12:19 AM, Jonathon Jongsma wrote: On Mon, 2016-05-23 at 15:17 -0500, Jonathon Jongsma wrote: On Sun, 2016-05-22 at 04:19 -0400, Frediano Ziglio wrote: /* FIXME: move back to display-channel.h (once structs are private) */ typedef struct Drawable Drawable; -typedef struct Displa

[Spice-devel] [PATCH] RFC Avoid multiple typedef in headers

2016-05-24 Thread Frediano Ziglio
This after typedef discussions. This version moved Drawable into a separate file. Signed-off-by: Frediano Ziglio --- server/Makefile.am | 1 + server/dcc-encoders.c| 2 +- server/dcc-encoders.h| 1 + server/dcc.h | 8 -- server/display-channel.h | 39 ++

[Spice-devel] [spice-gtk] channel-main: Fix 'capabilties' typo

2016-05-24 Thread Christophe Fergeau
This was mispelt in a static function name. --- src/channel-main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/channel-main.c b/src/channel-main.c index dec5d73..94ece97 100644 --- a/src/channel-main.c +++ b/src/channel-main.c @@ -274,7 +274,7 @@ static gboolean t

[Spice-devel] [PATCH] cache-item.h: remove unnecessary include

2016-05-24 Thread Jonathon Jongsma
--- server/cache-item.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/cache-item.h b/server/cache-item.h index d14e9a3..82cfe26 100644 --- a/server/cache-item.h +++ b/server/cache-item.h @@ -20,8 +20,6 @@ #include -#include "red-channel.h" - typedef struct RedCacheItem RedCach

[Spice-devel] [PATCH] AgentMsgFilter: use typedef

2016-05-24 Thread Jonathon Jongsma
Instead of using the full 'struct AgentMsgFilter', use the typedef name --- server/agent-msg-filter.c | 6 +++--- server/agent-msg-filter.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/agent-msg-filter.c b/server/agent-msg-filter.c index 25edfd9..3e5b225 100644

Re: [Spice-devel] [PATCH] Introduce SPICE_UPCAST macro

2016-05-24 Thread Jonathon Jongsma
On Tue, 2016-05-24 at 10:44 -0400, Frediano Ziglio wrote: > > > > On Tue, May 24, 2016 at 10:52:59AM +0100, Frediano Ziglio wrote: > > > This was proposed by Christophe as improvement over some typesafe > > > patches. > > > > > > Signed-off-by: Frediano Ziglio > > > --- > > > server/char-device

[Spice-devel] [PATCH] RFC Avoid multiple typedef in headers

2016-05-24 Thread Frediano Ziglio
This after typedef discussions Signed-off-by: Frediano Ziglio --- server/dcc-encoders.h| 33 ++--- server/dcc.h | 20 +++- server/display-channel.h | 2 ++ server/image-cache.h | 6 ++ server/stream.h | 41 +++

[Spice-devel] [PATCH 4/4] Remove potentially unsafe casts

2016-05-24 Thread Frediano Ziglio
The id type is already uint64_t, no need to cast using some low level casts. Signed-off-by: Frediano Ziglio --- server/cursor-channel.c | 2 +- server/dcc-send.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/cursor-channel.c b/server/cursor-channel.c index b

[Spice-devel] [PATCH 2/4] Move RedCacheItem size field inside cache_data union

2016-05-24 Thread Frediano Ziglio
This reduce a bit the structure size and make clean that the field is used only when the item is a cache item. Signed-off-by: Frediano Ziglio --- server/cache-item.h | 2 +- server/cache-item.tmpl.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/cache-item.h

[Spice-devel] [PATCH 0/4] Minor RedCacheItem changes

2016-05-24 Thread Frediano Ziglio
Change the structure to make clear the usage of the fields in the two phases of RedCacheItem life (cache then invalidation pipe item). Other minor changes and cleanups. Frediano Ziglio (4): Remove not necessary inval_type from RedCacheItem Move RedCacheItem size field inside cache_data union

[Spice-devel] [PATCH 1/4] Remove not necessary inval_type from RedCacheItem

2016-05-24 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/cache-item.h | 1 - server/cache-item.tmpl.c | 4 server/cursor-channel.c | 2 +- server/dcc-send.c| 2 +- 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/server/cache-item.h b/server/cache-item.h index d14e9a3..864b163 1

[Spice-devel] [PATCH 3/4] Remove unused macro definitions

2016-05-24 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/cache-item.tmpl.c | 4 1 file changed, 4 deletions(-) diff --git a/server/cache-item.tmpl.c b/server/cache-item.tmpl.c index 9a9181c..2e6f5ca 100644 --- a/server/cache-item.tmpl.c +++ b/server/cache-item.tmpl.c @@ -44,8 +44,6 @@ #endif -#define

Re: [Spice-devel] [PATCH] Introduce SPICE_UPCAST macro

2016-05-24 Thread Frediano Ziglio
> > On Tue, May 24, 2016 at 10:52:59AM +0100, Frediano Ziglio wrote: > > This was proposed by Christophe as improvement over some typesafe > > patches. > > > > Signed-off-by: Frediano Ziglio > > --- > > server/char-device.c | 2 +- > > server/cursor-channel.c | 6 +++--- > > serv

Re: [Spice-devel] typedefs and header dependencies

2016-05-24 Thread Jonathon Jongsma
On Tue, 2016-05-24 at 12:08 +0200, Christophe Fergeau wrote: > On Mon, May 23, 2016 at 04:19:02PM -0500, Jonathon Jongsma wrote: > > > > So, I chatted (very briefly) with Frediano about this on IRC after sending > > this > > email and I thought we should gauge opinions on options here. > > > > Th

Re: [Spice-devel] [Qemu-devel] [PATCH v2 10/12] spice/gl: create dummy primary surface (RfC)

2016-05-24 Thread Gerd Hoffmann
On Mo, 2016-05-23 at 16:03 +0200, Marc-André Lureau wrote: > Hi > > On Mon, May 23, 2016 at 3:52 PM, Gerd Hoffmann wrote: > > Hi, > > > > Resuming to work on this after 2.6 freeze break ... > > > >> I have done some more testing and sent a series for spice-gtk fixing > >> display with gl scanou

Re: [Spice-devel] [PATCH] Introduce SPICE_UPCAST macro

2016-05-24 Thread Christophe Fergeau
On Tue, May 24, 2016 at 10:52:59AM +0100, Frediano Ziglio wrote: > This was proposed by Christophe as improvement over some typesafe > patches. > > Signed-off-by: Frediano Ziglio > --- > server/char-device.c | 2 +- > server/cursor-channel.c | 6 +++--- > server/dcc-encoders.c

Re: [Spice-devel] typedefs and header dependencies

2016-05-24 Thread Victor Toso
On Tue, May 24, 2016 at 04:58:36AM -0400, Frediano Ziglio wrote: > > > > Hi, > > > > On Mon, 2016-05-23 at 16:19 -0500, Jonathon Jongsma wrote: > > > On Mon, 2016-05-23 at 15:17 -0500, Jonathon Jongsma wrote: > > > > On Sun, 2016-05-22 at 04:19 -0400, Frediano Ziglio wrote: > > > > > > > > > >  

Re: [Spice-devel] [PATCH] Make some function static

2016-05-24 Thread Frediano Ziglio
> > On Tue, May 24, 2016 at 10:52:58AM +0100, Frediano Ziglio wrote: > > Signed-off-by: Frediano Ziglio > > --- > > server/dcc.c | 2 +- > > server/display-channel.c | 8 +--- > > server/display-channel.h | 2 -- > > server/red-parse-qxl.c | 2 +- > > server/red-parse-qxl.h |

Re: [Spice-devel] [PATCH] Make some function static

2016-05-24 Thread Christophe Fergeau
On Tue, May 24, 2016 at 10:52:58AM +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > server/dcc.c | 2 +- > server/display-channel.c | 8 +--- > server/display-channel.h | 2 -- > server/red-parse-qxl.c | 2 +- > server/red-parse-qxl.h | 1 - > server/stre

[Spice-devel] [PATCH v3] Simplify current_add_equal loop

2016-05-24 Thread Frediano Ziglio
With some simple steps I simplified the internal loop of this function * convert to infinite loop /* dpi contains a sublist of dcc's, ordered the same */ while (worker_ring_item) { dcc = SPICE_CONTAINEROF(worker_ring_item, DisplayChannelClient,

Re: [Spice-devel] typedefs and header dependencies

2016-05-24 Thread Christophe Fergeau
On Mon, May 23, 2016 at 04:19:02PM -0500, Jonathon Jongsma wrote: > > So, I chatted (very briefly) with Frediano about this on IRC after sending > this > email and I thought we should gauge opinions on options here. > > This typedef stuff really does make refactoring more difficult. When we move

Re: [Spice-devel] typedefs and header dependencies

2016-05-24 Thread Frediano Ziglio
> > > > > Hi, > > > > On Mon, 2016-05-23 at 16:19 -0500, Jonathon Jongsma wrote: > > > On Mon, 2016-05-23 at 15:17 -0500, Jonathon Jongsma wrote: > > > > On Sun, 2016-05-22 at 04:19 -0400, Frediano Ziglio wrote: > > > > > > > > > >  /* FIXME: move back to display-channel.h (once structs are > >

[Spice-devel] [PATCH] Introduce SPICE_UPCAST macro

2016-05-24 Thread Frediano Ziglio
This was proposed by Christophe as improvement over some typesafe patches. Signed-off-by: Frediano Ziglio --- server/char-device.c | 2 +- server/cursor-channel.c | 6 +++--- server/dcc-encoders.c| 2 +- server/dcc-send.c| 14 +++--- server/dcc.c

[Spice-devel] [PATCH] Make some function static

2016-05-24 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/dcc.c | 2 +- server/display-channel.c | 8 +--- server/display-channel.h | 2 -- server/red-parse-qxl.c | 2 +- server/red-parse-qxl.h | 1 - server/stream.c | 4 ++-- server/stream.h | 1 - 7 files changed, 9 insert

[Spice-devel] [client 2/2] streaming: Use the frame dimensions reported by the video decoder

2016-05-24 Thread Francois Gouget
The dimensions sent by the remote end are redundant and should not be trusted. Signed-off-by: Francois Gouget --- src/channel-display-gst.c | 40 +++- src/channel-display-mjpeg.c | 25 + src/channel-display-priv.h | 3 +-- src/chann

[Spice-devel] [client 1/2] streaming: Constify the video stream's dest and clip parameters

2016-05-24 Thread Francois Gouget
They are only supposed to be changed when receiving the relevant server message. Signed-off-by: Francois Gouget --- src/channel-display-priv.h | 2 +- src/channel-display.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/channel-display-priv.h b/src/channel-disp

Re: [Spice-devel] [PATCH spice-gtk] RFC: update NEWS for 0.32 release

2016-05-24 Thread Christophe Fergeau
On Tue, May 24, 2016 at 05:30:26AM -0400, Marc-André Lureau wrote: > > > +- learn GStreamer as a backend for mjpeg, vp8 & h264 decoding > > > > "learn" ? I'd use "add GStreamer..." > > Ok > > Is there anything else to add regarding gstreamer support? I haven't looked > in details recently. I d

Re: [Spice-devel] [PATCH spice-gtk] RFC: update NEWS for 0.32 release

2016-05-24 Thread Marc-André Lureau
Hi - Original Message - > Hey, > > On Mon, May 23, 2016 at 07:09:16PM +0200, Marc-André Lureau wrote: > > Signed-off-by: Marc-André Lureau > > --- > > > > Hi, > > > > It would be nice to release spice-gtk 0.32 with all the fixes for > > virgl. Is there any known regression left or some

Re: [Spice-devel] [PATCH spice-gtk] RFC: update NEWS for 0.32 release

2016-05-24 Thread Victor Toso
Hi, On Tue, May 24, 2016 at 11:09:34AM +0200, Christophe Fergeau wrote: > Hey, > > On Mon, May 23, 2016 at 07:09:16PM +0200, Marc-André Lureau wrote: > > Signed-off-by: Marc-André Lureau > > --- > > > > Hi, > > > > It would be nice to release spice-gtk 0.32 with all the fixes for > > virgl. Is th

Re: [Spice-devel] [PATCH spice-gtk] RFC: update NEWS for 0.32 release

2016-05-24 Thread Christophe Fergeau
Hey, On Mon, May 23, 2016 at 07:09:16PM +0200, Marc-André Lureau wrote: > Signed-off-by: Marc-André Lureau > --- > > Hi, > > It would be nice to release spice-gtk 0.32 with all the fixes for > virgl. Is there any known regression left or something good enough to > include before a release? I t

Re: [Spice-devel] typedefs and header dependencies

2016-05-24 Thread Frediano Ziglio
> > Hi, > > On Mon, 2016-05-23 at 16:19 -0500, Jonathon Jongsma wrote: > > On Mon, 2016-05-23 at 15:17 -0500, Jonathon Jongsma wrote: > > > On Sun, 2016-05-22 at 04:19 -0400, Frediano Ziglio wrote: > > > > > > > >  /* FIXME: move back to display-channel.h (once structs are private) > > > > >  */