[vlc-devel] commit: vlc_internals: use VLC_OBJECT, kill a bunch of warnings ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed May 28 19:21:06 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Wed May 28 20:21:27 2008 +0300| [620675d9d1a3580afb6913dedd642028ee4582eb]

vlc_internals: use VLC_OBJECT, kill a bunch of warnings

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=620675d9d1a3580afb6913dedd642028ee4582eb
---

 src/libvlc.h |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/libvlc.h b/src/libvlc.h
index 9194932..85f62df 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -194,10 +194,7 @@ struct vlc_object_internals_t
 #define ZOOM_ORIGINAL_KEY_TEXT N_("1:1 Original")
 #define ZOOM_DOUBLE_KEY_TEXT N_("2:1 Double")
 
-static inline vlc_object_internals_t *vlc_internals( vlc_object_t *obj )
-{
-    return ((vlc_object_internals_t *)obj) - 1;
-}
+#define vlc_internals( obj ) (((vlc_object_internals_t*)(VLC_OBJECT(obj)))-1)
 
 /**
  * Private LibVLC instance data.




More information about the vlc-devel mailing list