Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
ab48ec93
Commit
ab48ec93
authored
Nov 05, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ListenUDP
parent
1ed9a7d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+7
-10
No files found.
modules/services_discovery/sap.c
View file @
ab48ec93
...
@@ -1202,17 +1202,14 @@ static sdp_t *ParseSDP (vlc_object_t *p_obj, const char *psz_sdp)
...
@@ -1202,17 +1202,14 @@ static sdp_t *ParseSDP (vlc_object_t *p_obj, const char *psz_sdp)
static
int
InitSocket
(
services_discovery_t
*
p_sd
,
const
char
*
psz_address
,
static
int
InitSocket
(
services_discovery_t
*
p_sd
,
const
char
*
psz_address
,
int
i_port
)
int
i_port
)
{
{
int
i_fd
=
net_OpenUDP
(
p_sd
,
psz_address
,
i_port
,
NULL
,
0
);
int
i_fd
=
net_ListenUDP1
((
vlc_object_t
*
)
p_sd
,
psz_address
,
i_port
);
if
(
i_fd
==
-
1
)
if
(
i_fd
!=
-
1
)
return
VLC_EGENERIC
;
{
net_StopSend
(
i_fd
);
INSERT_ELEM
(
p_sd
->
p_sys
->
pi_fd
,
p_sd
->
p_sys
->
i_fd
,
p_sd
->
p_sys
->
i_fd
,
i_fd
);
return
VLC_SUCCESS
;
}
return
VLC_EGENERIC
;
net_StopSend
(
i_fd
);
INSERT_ELEM
(
p_sd
->
p_sys
->
pi_fd
,
p_sd
->
p_sys
->
i_fd
,
p_sd
->
p_sys
->
i_fd
,
i_fd
);
return
VLC_SUCCESS
;
}
}
static
int
Decompress
(
const
unsigned
char
*
psz_src
,
unsigned
char
**
_dst
,
int
i_len
)
static
int
Decompress
(
const
unsigned
char
*
psz_src
,
unsigned
char
**
_dst
,
int
i_len
)
...
...
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