[vlc-commits] renderer: make p_sys a void pointer

Thomas Guillem git at videolan.org
Mon Jan 21 14:32:00 CET 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jan 21 13:53:28 2019 +0100| [04e0a5a2d3ed7f1c3e26160ef308763ecebb30f9] | committer: Thomas Guillem

renderer: make p_sys a void pointer

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

 include/vlc_renderer_discovery.h    | 3 +--
 modules/services_discovery/upnp.cpp | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/include/vlc_renderer_discovery.h b/include/vlc_renderer_discovery.h
index fcb0cd7d2d..dc55ba2412 100644
--- a/include/vlc_renderer_discovery.h
+++ b/include/vlc_renderer_discovery.h
@@ -114,7 +114,6 @@ vlc_renderer_item_flags(const vlc_renderer_item_t *p_item);
  * @{
  */
 
-typedef struct vlc_renderer_discovery_sys vlc_renderer_discovery_sys;
 struct vlc_renderer_discovery_owner;
 
 /**
@@ -172,7 +171,7 @@ struct vlc_renderer_discovery_t
     char *              psz_name;
     config_chain_t *    p_cfg;
 
-    vlc_renderer_discovery_sys *p_sys;
+    void *p_sys;
 };
 
 /**
diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index 5edb978f71..9aa62d96d4 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -1609,7 +1609,7 @@ static int OpenRD( vlc_object_t *p_this )
 
     if ( !p_sys )
         return VLC_ENOMEM;
-    p_rd->p_sys = ( vlc_renderer_discovery_sys* ) p_sys;
+    p_rd->p_sys = p_sys;
     p_sys->p_upnp = UpnpInstanceWrapper::get( p_this );
 
     if ( !p_sys->p_upnp )



More information about the vlc-commits mailing list