[vlc-devel] commit: Privatize p_interaction ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun May 4 20:15:54 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Sun May  4 21:11:22 2008 +0300| [26d208e59874977e52bcf36d92f439592cd1524a]

Privatize p_interaction

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

 include/vlc_main.h  |    2 --
 src/libvlc-common.c |    6 +++---
 src/libvlc.h        |    2 +-
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/include/vlc_main.h b/include/vlc_main.h
index a3066f8..1f9ae73 100644
--- a/include/vlc_main.h
+++ b/include/vlc_main.h
@@ -47,8 +47,6 @@ struct libvlc_int_t
 
     playlist_t            *p_playlist;       ///< playlist object
 
-    vlc_object_t          *p_interaction;    ///< interface interaction object
-
     void                 *p_stats_computer;  ///< Input thread computing stats (needs cleanup)
     global_stats_t       *p_stats;           ///< Global statistics
 
diff --git a/src/libvlc-common.c b/src/libvlc-common.c
index 0403d34..068392b 100644
--- a/src/libvlc-common.c
+++ b/src/libvlc-common.c
@@ -180,7 +180,7 @@ libvlc_int_t * libvlc_InternalCreate( void )
 
     priv = libvlc_priv (p_libvlc);
     p_libvlc->p_playlist = NULL;
-    p_libvlc->p_interaction = NULL;
+    priv->p_interaction = NULL;
     priv->p_vlm = NULL;
     p_libvlc->psz_object_name = strdup( "libvlc" );
 
@@ -740,7 +740,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
                      p_libvlc->p_hotkeys );
 
     /* Initialize interaction */
-    p_libvlc->p_interaction = interaction_Init( p_libvlc );
+    priv->p_interaction = interaction_Init( p_libvlc );
 
     /* Initialize playlist and get commandline files */
     playlist_ThreadCreate( p_libvlc );
@@ -988,7 +988,7 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
 
     /* Free interaction */
     msg_Dbg( p_libvlc, "removing interaction" );
-    vlc_object_release( p_libvlc->p_interaction );
+    vlc_object_release( priv->p_interaction );
 
     stats_TimersDumpAll( p_libvlc );
     stats_TimersCleanAll( p_libvlc );
diff --git a/src/libvlc.h b/src/libvlc.h
index f3ae94b..8377dc9 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -223,7 +223,7 @@ typedef struct libvlc_priv_t
 
     module_t          *p_memcpy_module;  ///< Fast memcpy plugin used
     vlm_t             *p_vlm;  ///< VLM if created from libvlc-common.c
-
+    vlc_object_t      *p_interaction;    ///< interface interaction object
     httpd_t           *p_httpd; ///< HTTP daemon (src/network/httpd.c)
 } libvlc_priv_t;
 




More information about the vlc-devel mailing list