[vlc-commits] bonjour: use an intermediate variable to access p_sys

Thomas Guillem git at videolan.org
Mon Jan 21 14:31:58 CET 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jan 21 14:13:35 2019 +0100| [ddfca8f5c1e75c2c2d63338874cbe63e78927598] | committer: Thomas Guillem

bonjour: use an intermediate variable to access p_sys

And prepare for the next commit.

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

 modules/services_discovery/bonjour.m | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/services_discovery/bonjour.m b/modules/services_discovery/bonjour.m
index 9957188ab8..aebb203393 100644
--- a/modules/services_discovery/bonjour.m
+++ b/modules/services_discovery/bonjour.m
@@ -423,9 +423,9 @@ static void CloseSD(vlc_object_t *p_this)
 static int OpenRD(vlc_object_t *p_this)
 {
     vlc_renderer_discovery_t *p_rd = (vlc_renderer_discovery_t *)p_this;
-    vlc_renderer_discovery_sys *p_sys = NULL;
+    struct vlc_renderer_discovery_sys *p_sys = NULL;
 
-    p_rd->p_sys = p_sys = calloc(1, sizeof(vlc_renderer_discovery_sys));
+    p_rd->p_sys = p_sys = calloc(1, sizeof(struct vlc_renderer_discovery_sys));
     if (!p_sys) {
         return VLC_ENOMEM;
     }
@@ -442,7 +442,7 @@ static int OpenRD(vlc_object_t *p_this)
 static void CloseRD(vlc_object_t *p_this)
 {
     vlc_renderer_discovery_t *p_rd = (vlc_renderer_discovery_t *)p_this;
-    vlc_renderer_discovery_sys *p_sys = p_rd->p_sys;
+    struct vlc_renderer_discovery_sys *p_sys = p_rd->p_sys;
 
     VLCNetServiceDiscoveryController *discoveryController = (__bridge VLCNetServiceDiscoveryController *)(p_sys->discoveryController);
     [discoveryController stopDiscovery];



More information about the vlc-commits mailing list