Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
e602abf8
Commit
e602abf8
authored
Jan 07, 2015
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Jan 12, 2015
Browse files
dsm: use NETBIOS_FILESERVER define
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
8227f7e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/access/dsm/access.c
View file @
e602abf8
...
...
@@ -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
);
...
...
modules/access/dsm/sd.c
View file @
e602abf8
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment