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
ff2c0c11
Commit
ff2c0c11
authored
Apr 12, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplifying
parent
a6cb8953
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+1
-12
No files found.
modules/services_discovery/sap.c
View file @
ff2c0c11
...
@@ -507,21 +507,13 @@ static void CloseDemux( vlc_object_t *p_this )
...
@@ -507,21 +507,13 @@ static void CloseDemux( vlc_object_t *p_this )
static
void
Run
(
services_discovery_t
*
p_sd
)
static
void
Run
(
services_discovery_t
*
p_sd
)
{
{
int
i
;
int
i
;
uint8_t
*
p_buffer
;
playlist_t
*
p_playlist
;
playlist_t
*
p_playlist
;
/* read SAP packets */
/* read SAP packets */
while
(
!
p_sd
->
b_die
)
while
(
!
p_sd
->
b_die
)
{
{
int
i_read
;
int
i_read
;
p_buffer
=
(
uint8_t
*
)
malloc
(
MAX_SAP_BUFFER
);
uint8_t
p_buffer
[
MAX_SAP_BUFFER
];
if
(
!
p_buffer
)
{
msg_Err
(
p_sd
,
"out of memory"
);
p_sd
->
b_die
=
VLC_TRUE
;
continue
;
}
i_read
=
net_Select
(
p_sd
,
p_sd
->
p_sys
->
pi_fd
,
NULL
,
i_read
=
net_Select
(
p_sd
,
p_sd
->
p_sys
->
pi_fd
,
NULL
,
p_sd
->
p_sys
->
i_fd
,
p_buffer
,
p_sd
->
p_sys
->
i_fd
,
p_buffer
,
...
@@ -565,7 +557,6 @@ static void Run( services_discovery_t *p_sd )
...
@@ -565,7 +557,6 @@ static void Run( services_discovery_t *p_sd )
{
{
msg_Warn
(
p_sd
,
"socket read error"
);
msg_Warn
(
p_sd
,
"socket read error"
);
}
}
free
(
p_buffer
);
continue
;
continue
;
}
}
...
@@ -573,8 +564,6 @@ static void Run( services_discovery_t *p_sd )
...
@@ -573,8 +564,6 @@ static void Run( services_discovery_t *p_sd )
/* Parse the packet */
/* Parse the packet */
ParseSAP
(
p_sd
,
p_buffer
,
i_read
);
ParseSAP
(
p_sd
,
p_buffer
,
i_read
);
free
(
p_buffer
);
}
}
}
}
...
...
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