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
d1c124b7
Commit
d1c124b7
authored
Oct 17, 2004
by
Mark Moriarty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIN32 rc-quiet fix, only do net_Accept once per second to avoid loading down CPU
parent
c788b9a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
modules/control/rc.c
modules/control/rc.c
+22
-2
No files found.
modules/control/rc.c
View file @
d1c124b7
...
...
@@ -388,13 +388,33 @@ static void Run( intf_thread_t *p_intf )
{
char
*
psz_cmd
,
*
psz_arg
;
vlc_bool_t
b_complete
;
if
(
p_intf
->
p_sys
->
i_socket_listen
!=
-
1
&&
p_intf
->
p_sys
->
i_socket
==
-
1
)
p_intf
->
p_sys
->
i_socket
==
-
1
)
{
#ifdef WIN32
/* If rc-quiet is specified, only check for socket connections
once per second, to not flood the CPU. */
if
(
config_GetInt
(
p_intf
,
"rc-quiet"
)
)
{
do
{
p_intf
->
p_sys
->
i_socket
=
net_Accept
(
p_intf
,
p_intf
->
p_sys
->
i_socket_listen
,
0
);
msleep
(
1000
);
}
while
(
p_intf
->
p_sys
->
i_socket
==
-
1
);
}
else
{
p_intf
->
p_sys
->
i_socket
=
net_Accept
(
p_intf
,
p_intf
->
p_sys
->
i_socket_listen
,
0
);
}
#else
p_intf
->
p_sys
->
i_socket
=
net_Accept
(
p_intf
,
p_intf
->
p_sys
->
i_socket_listen
,
0
);
#endif
}
b_complete
=
ReadCommand
(
p_intf
,
p_buffer
,
&
i_size
);
...
...
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