[vlc-devel] [PATCH 7/7] vout: display: pass the vout_display_priv_t directly in internal calls
Steve Lhomme
robux4 at ycbcr.xyz
Thu Oct 10 08:15:00 CEST 2019
On 2019-10-09 18:19, RĂ©mi Denis-Courmont wrote:
> Hi,
>
> This feels very backward. We don't normally pass the private data. And the
> compilers are perfectly capable to optimize the back-and-forth conversion so
> the change is completely useless.
container_of() is a glorified cast. One should not use cast unless
there's no other option.
This is exactly the same as was done in
`a46508d9dd8eeccc8e8fa778b331f6c027db84c7`.
More information about the vlc-devel
mailing list