[vlc-devel] [PATCH 14/14] dsm: use NETBIOS_FILESERVER define

Thomas Guillem thomas at gllm.fr
Fri Dec 5 14:43:05 CET 2014


---
 modules/access/dsm/common.c | 3 ++-
 modules/access/dsm/sd.c     | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/access/dsm/common.c b/modules/access/dsm/common.c
index 1256d40..13a2359 100644
--- a/modules/access/dsm/common.c
+++ b/modules/access/dsm/common.c
@@ -373,7 +373,8 @@ static int get_address( bdsm_sys_t *p_sys )
         struct addrinfo *p_info = NULL;
 
         /* Is this a netbios name on this LAN ? */
-        if( netbios_ns_resolve( p_sys->p_ns, p_sys->url.psz_host, 0x20,
+        if( netbios_ns_resolve( p_sys->p_ns, p_sys->url.psz_host,
+                                NETBIOS_FILESERVER,
                                 &p_sys->addr.s_addr) )
         {
             strlcpy( p_sys->netbios_name, p_sys->url.psz_host, 16);
diff --git a/modules/access/dsm/sd.c b/modules/access/dsm/sd.c
index e183942..9d013e0 100644
--- a/modules/access/dsm/sd.c
+++ b/modules/access/dsm/sd.c
@@ -90,7 +90,7 @@ static int SdBrowse (services_discovery_t *p_sd, const char *psz_path)
             netbios_ns_entry *p_entry = netbios_ns_entry_at( ns, i );
             char type = netbios_ns_entry_type( p_entry );
 
-            if( type == 0x20 )
+            if( type == NETBIOS_FILESERVER )
             {
                 input_item_t *p_item;
                 char *psz_mrl;
-- 
2.1.3




More information about the vlc-devel mailing list