Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
fadec973
Commit
fadec973
authored
Dec 10, 2014
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Dec 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsm: don't use netbios struct members directly
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
8d48e95e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/access/dsm/sd.c
modules/access/dsm/sd.c
+5
-3
No files found.
modules/access/dsm/sd.c
View file @
fadec973
...
...
@@ -67,16 +67,18 @@ int bdsm_SdOpen (vlc_object_t *p_this)
for
(
ssize_t
i
=
0
;
i
<
netbios_ns_entry_count
(
p_sys
->
ns
);
i
++
)
{
netbios_ns_entry
*
p_entry
=
netbios_ns_entry_at
(
p_sys
->
ns
,
i
);
char
type
=
netbios_ns_entry_type
(
p_entry
);
if
(
p_entry
->
type
==
0x20
)
if
(
type
==
0x20
)
{
input_item_t
*
p_item
;
char
*
psz_mrl
;
const
char
*
name
=
netbios_ns_entry_name
(
p_entry
);
if
(
asprintf
(
&
psz_mrl
,
"smb://%s"
,
p_entry
->
name
)
<
0
)
if
(
asprintf
(
&
psz_mrl
,
"smb://%s"
,
name
)
<
0
)
goto
error
;
p_item
=
input_item_NewWithType
(
psz_mrl
,
p_entry
->
name
,
0
,
NULL
,
p_item
=
input_item_NewWithType
(
psz_mrl
,
name
,
0
,
NULL
,
0
,
-
1
,
ITEM_TYPE_NODE
);
msg_Dbg
(
p_sd
,
"Adding item %s"
,
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