[vlc-commits] intf: fix win32 build

Jean-Baptiste Kempf git at videolan.org
Fri Mar 8 18:32:07 CET 2019


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Mar  8 18:31:30 2019 +0100| [4cf85b214b5e60ac65e6e794f1bf932c00993be5] | committer: Jean-Baptiste Kempf

intf: fix win32 build

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

 src/interface/interface.c | 6 +++---
 src/libvlc.c              | 2 +-
 src/libvlc.h              | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/interface/interface.c b/src/interface/interface.c
index 30a10558bf..bdcc1364e6 100644
--- a/src/interface/interface.c
+++ b/src/interface/interface.c
@@ -199,8 +199,8 @@ static int intf_CreateInternal( libvlc_int_t *libvlc, playlist_t *playlist,
     }
 
     vlc_mutex_lock( &lock );
-    p_intf->p_next = priv->interface;
-    priv->interface = p_intf;
+    p_intf->p_next = priv->interfaces;
+    priv->interfaces = p_intf;
     vlc_mutex_unlock( &lock );
 
     return VLC_SUCCESS;
@@ -317,7 +317,7 @@ void intf_DestroyAll(libvlc_int_t *libvlc)
     playlist = libvlc_priv(libvlc)->playlist;
     if (playlist != NULL)
     {
-        intf_thread_t *intf, **pp = &priv->interface;
+        intf_thread_t *intf, **pp = &priv->interfaces;
 
         while ((intf = *pp) != NULL)
         {
diff --git a/src/libvlc.c b/src/libvlc.c
index 9cb6924ca8..8200f81d9e 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -94,7 +94,7 @@ libvlc_int_t * libvlc_InternalCreate( void )
         return NULL;
 
     priv = libvlc_priv (p_libvlc);
-    priv->interface = NULL;
+    priv->interfaces = NULL;
     priv->playlist = NULL;
     priv->main_playlist = NULL;
     priv->p_vlm = NULL;
diff --git a/src/libvlc.h b/src/libvlc.h
index 645f847568..3dfd45f7ce 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -187,7 +187,7 @@ typedef struct libvlc_priv_t
     vlm_t             *p_vlm;  ///< the VLM singleton (or NULL)
     vlc_dialog_provider *p_dialog_provider; ///< dialog provider
     vlc_keystore      *p_memory_keystore; ///< memory keystore
-    struct intf_thread_t *interface; ///< Linked-list of interfaces
+    intf_thread_t *interfaces;  ///< Linked-list of interfaces
     struct playlist_t *playlist; ///< Playlist for interfaces
     vlc_playlist_t *main_playlist;
     struct input_preparser_t *parser; ///< Input item meta data handler



More information about the vlc-commits mailing list