[vlc-commits] dsm: use NETBIOS_FILESERVER define

Thomas Guillem git at videolan.org
Mon Jan 12 23:29:12 CET 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jan  7 10:06:12 2015 +0000| [e602abf8a426e99222b438e261fccc500805a36a] | committer: Jean-Baptiste Kempf

dsm: use NETBIOS_FILESERVER define

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/access/dsm/access.c b/modules/access/dsm/access.c
index 41233ba..1ea8e75 100644
--- a/modules/access/dsm/access.c
+++ b/modules/access/dsm/access.c
@@ -306,7 +306,8 @@ static int get_address( access_t *p_access )
         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 2d8334b..06ebbc2 100644
--- a/modules/access/dsm/sd.c
+++ b/modules/access/dsm/sd.c
@@ -73,7 +73,7 @@ static void *Run( void *data )
         netbios_ns_entry *p_entry = netbios_ns_entry_at( p_sys->p_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;



More information about the vlc-commits mailing list