]> git.sesse.net Git - vlc/commitdiff
dsm: use NETBIOS_FILESERVER define
authorThomas Guillem <thomas@gllm.fr>
Wed, 7 Jan 2015 10:06:12 +0000 (10:06 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 12 Jan 2015 22:27:37 +0000 (23:27 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/access/dsm/access.c
modules/access/dsm/sd.c

index 41233bae97751ec95b49669a529846fbd3bbce73..1ea8e75508afcc77c1d773e3576821ec69a37958 100644 (file)
@@ -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);
index 2d8334b27326543253dcd2742916e31e4bdd5caa..06ebbc2ab9d8f7ebacaad1c158b867577dcc45f1 100644 (file)
@@ -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;