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
ae4f748f
Commit
ae4f748f
authored
Dec 22, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pierre writes too good code. We need to kludge it :(
parent
a09bcae3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+6
-1
No files found.
modules/services_discovery/sap.c
View file @
ae4f748f
...
@@ -543,7 +543,7 @@ static void Run( services_discovery_t *p_sd )
...
@@ -543,7 +543,7 @@ static void Run( services_discovery_t *p_sd )
}
}
/* read SAP packets */
/* read SAP packets */
while
(
!
p_sd
->
b_die
)
while
(
vlc_object_alive
(
p_sd
)
)
{
{
unsigned
n
=
p_sd
->
p_sys
->
i_fd
;
unsigned
n
=
p_sd
->
p_sys
->
i_fd
;
struct
pollfd
ufd
[
n
];
struct
pollfd
ufd
[
n
];
...
@@ -555,6 +555,11 @@ static void Run( services_discovery_t *p_sd )
...
@@ -555,6 +555,11 @@ static void Run( services_discovery_t *p_sd )
ufd
[
i
].
revents
=
0
;
ufd
[
i
].
revents
=
0
;
}
}
/* FIXME: remove this stupid evil hack when we have sorted out how to
* to cancel threads while doing network I/O */
if
(
timeout
>
2000
)
timeout
=
2000
;
if
(
poll
(
ufd
,
n
,
timeout
)
>
0
)
if
(
poll
(
ufd
,
n
,
timeout
)
>
0
)
{
{
for
(
unsigned
i
=
0
;
i
<
n
;
i
++
)
for
(
unsigned
i
=
0
;
i
<
n
;
i
++
)
...
...
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