> 
> On Mon, Sep 26, 2016 at 09:12:42AM +0100, Frediano Ziglio wrote:
> > vdi_port_read_buf_release is registered passing data as
> > RedVDIReadBuf*, not RedPipeItem*. Cast opaque to proper
> > pointer type to avoid the assumption that first field of
> > RedVDIReadBuf is a RedPipeItem.
> 
> Well, the idea is that VDIReadBuf is a refcounted object, not that it
> contains a refcounted object. The fact that RedPipeItem is abused for
> that is the issue here imo, not the casting/assumption that something
> called 'base' is the first item in the struct.
> 
> Christophe
> 

Even GObject are refcounted but are not RedPipeItem.

Frediano
_______________________________________________
Spice-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to