Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
73c7d578
Commit
73c7d578
authored
Aug 06, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SAP: revert most of [
a8eb03fa
]
Especially POLLHUP makes no sense in events.
parent
a8fb2659
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
17 deletions
+1
-17
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+1
-17
No files found.
modules/services_discovery/sap.c
View file @
73c7d578
...
@@ -556,8 +556,6 @@ static void Run( services_discovery_t *p_sd )
...
@@ -556,8 +556,6 @@ static void Run( services_discovery_t *p_sd )
return
;
return
;
}
}
vlc_object_lock
(
p_sd
);
/* read SAP packets */
/* read SAP packets */
while
(
vlc_object_alive
(
p_sd
)
)
while
(
vlc_object_alive
(
p_sd
)
)
{
{
...
@@ -573,20 +571,9 @@ static void Run( services_discovery_t *p_sd )
...
@@ -573,20 +571,9 @@ static void Run( services_discovery_t *p_sd )
/* Make sure we track vlc_object_signal() */
/* Make sure we track vlc_object_signal() */
ufd
[
n
].
fd
=
vlc_object_waitpipe
(
p_sd
);
ufd
[
n
].
fd
=
vlc_object_waitpipe
(
p_sd
);
ufd
[
n
].
events
=
POLLIN
|
POLLHUP
;
ufd
[
n
].
events
=
POLLIN
;
ufd
[
n
].
revents
=
0
;
ufd
[
n
].
revents
=
0
;
if
(
ufd
[
n
].
fd
==
-
1
)
{
/* On windows, fd will be -1, as we can't select on a pipe()-ed
* fildes. Because we have no other solution to track that
* object is killed, we make sure the timeout won't be to long. */
if
(
timeout
>
1000
||
timeout
==
-
1
)
timeout
=
1000
;
}
vlc_object_unlock
(
p_sd
);
if
(
poll
(
ufd
,
n
+
1
,
timeout
)
>
0
)
if
(
poll
(
ufd
,
n
+
1
,
timeout
)
>
0
)
{
{
for
(
unsigned
i
=
0
;
i
<
n
;
i
++
)
for
(
unsigned
i
=
0
;
i
<
n
;
i
++
)
...
@@ -644,10 +631,7 @@ static void Run( services_discovery_t *p_sd )
...
@@ -644,10 +631,7 @@ static void Run( services_discovery_t *p_sd )
timeout
=
-
1
;
/* We can safely poll indefinitly. */
timeout
=
-
1
;
/* We can safely poll indefinitly. */
else
if
(
timeout
<
200
)
else
if
(
timeout
<
200
)
timeout
=
200
;
/* Don't wakeup too fast. */
timeout
=
200
;
/* Don't wakeup too fast. */
vlc_object_lock
(
p_sd
);
}
}
vlc_object_unlock
(
p_sd
);
}
}
/**********************************************************************
/**********************************************************************
...
...
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