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
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel