[Spice-devel] [PATCH v5 16/20] spice-gtk: Refactor the video decoding to use a more object oriented design.

Christophe Fergeau cfergeau at redhat.com
Thu Oct 1 01:29:58 PDT 2015


On Wed, Sep 30, 2015 at 01:40:09PM +0200, Francois Gouget wrote:
> On Mon, 21 Sep 2015, Christophe Fergeau wrote:
> [...]
> > > -        st->msg_data = in;
> > 
> > Not very clear in this commit why you needed to stop storing the message
> > within the display_stream structure, and makes the diff bigger than it
> > could, I guess I'll find an explanation when looking at the commits
> > introducing gstreamer ;)
> 
> This patch introduces a proper API for the video decoder. Part of that 
> is not having the video decoder depend on the internals of the 
> display_stream structure so it is more reusable.
> 
> Before this patch channel-display-mjpeg.c has no place to store the 
> frame message. Yet, as far as I can see, it cannot pass it to the 
> mjpeg_src_init() callback that needs it. So removing the 
> display_stream.msg_data field cannot come before this patch. And I don't 
> think it's worth introducing a flawed version of the video decoder API 
> just to fix it in the next patch.

Sure, I was not necessarily suggesting more code changas, a short
explanation in the commit log might be helpful though.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20151001/faadf6ff/attachment.sig>


More information about the Spice-devel mailing list