Re: [Spice-devel] [PATCH] streaming: Tweak the GStreamer decoder to avoid a compiler warning

2016-06-01 Thread Francois Gouget
On Wed, 1 Jun 2016, Marc-André Lureau wrote: > hi > > On Mon, May 30, 2016 at 9:37 PM, Francois Gouget > wrote: > > We check that there is a matching frame in the queue before popping the > > old ones. So we know the inner loop will find a match and thus that > > frame

Re: [Spice-devel] [PATCH] streaming: Tweak the GStreamer decoder to avoid a compiler warning

2016-06-01 Thread Marc-André Lureau
hi On Mon, May 30, 2016 at 9:37 PM, Francois Gouget wrote: > We check that there is a matching frame in the queue before popping the > old ones. So we know the inner loop will find a match and thus that > frame will not be NULL. But figuring that out is too hard for the

Re: [Spice-devel] [PATCH] streaming: Tweak the GStreamer decoder to avoid a compiler warning

2016-06-01 Thread Pavel Grunt
On Mon, 2016-05-30 at 21:37 +0200, Francois Gouget wrote: > We check that there is a matching frame in the queue before popping the > old ones. So we know the inner loop will find a match and thus that > frame will not be NULL. But figuring that out is too hard for the > compiler. > >

[Spice-devel] [PATCH] streaming: Tweak the GStreamer decoder to avoid a compiler warning

2016-05-30 Thread Francois Gouget
We check that there is a matching frame in the queue before popping the old ones. So we know the inner loop will find a match and thus that frame will not be NULL. But figuring that out is too hard for the compiler. Signed-off-by: Francois Gouget --- Adding an if