[vlc-commits] libvlc: use container_of()
Rémi Denis-Courmont
git at videolan.org
Wed Jun 7 22:21:36 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jun 7 23:21:06 2017 +0300| [ba324b02a322396f2263bbe3d951e98c39668cdc] | committer: Rémi Denis-Courmont
libvlc: use container_of()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ba324b02a322396f2263bbe3d951e98c39668cdc
---
src/libvlc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libvlc.h b/src/libvlc.h
index eef1d0a01c..15db8e037f 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -158,7 +158,7 @@ typedef struct libvlc_priv_t
static inline libvlc_priv_t *libvlc_priv (libvlc_int_t *libvlc)
{
- return (libvlc_priv_t *)libvlc;
+ return container_of(libvlc, libvlc_priv_t, public_data);
}
int intf_InsertItem(libvlc_int_t *, const char *mrl, unsigned optc,
More information about the vlc-commits
mailing list