Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
70044982
Commit
70044982
authored
Sep 01, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverts 21658 as it's totally wrong
parent
ee51eb43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
22 deletions
+8
-22
modules/control/rc.c
modules/control/rc.c
+8
-22
No files found.
modules/control/rc.c
View file @
70044982
...
...
@@ -31,7 +31,6 @@
#include <errno.h>
/* ENOMEM */
#include <ctype.h>
#include <signal.h>
#include <poll.h>
#include <vlc_interface.h>
#include <vlc_aout.h>
...
...
@@ -1943,32 +1942,19 @@ vlc_bool_t ReadCommand( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
}
#endif
struct
pollfd
fds
;
fds
.
fd
=
p_intf
->
p_sys
->
i_socket
==
-
1
?
0
/*STDIN_FILENO*/
:
p_intf
->
p_sys
->
i_socket
;
fds
.
events
=
POLLIN
;
i_read
=
0
;
while
(
!
intf_ShouldDie
(
p_intf
)
&&
*
pi_size
<
MAX_LINE_LENGTH
&&
i_read
>=
0
)
{
int
i_poll
=
poll
(
&
fds
,
1
,
INTF_IDLE_SLEEP
/
1000
);
if
(
i_poll
==
1
)
{
i_read
=
net_Read
(
p_intf
,
p_intf
->
p_sys
->
i_socket
==
-
1
?
while
(
!
intf_ShouldDie
(
p_intf
)
&&
*
pi_size
<
MAX_LINE_LENGTH
&&
(
i_read
=
net_Read
(
p_intf
,
p_intf
->
p_sys
->
i_socket
==
-
1
?
0
/*STDIN_FILENO*/
:
p_intf
->
p_sys
->
i_socket
,
NULL
,
(
uint8_t
*
)
p_buffer
+
*
pi_size
,
1
,
VLC_FALSE
);
(
uint8_t
*
)
p_buffer
+
*
pi_size
,
1
,
VLC_FALSE
)
)
>
0
)
{
if
(
p_buffer
[
*
pi_size
]
==
'\r'
||
p_buffer
[
*
pi_size
]
==
'\n'
)
break
;
(
*
pi_size
)
++
;
}
else
if
(
i_poll
<
0
)
break
;
}
/* Connection closed */
if
(
i_read
<
0
)
if
(
i_read
<
=
0
)
{
if
(
p_intf
->
p_sys
->
i_socket
!=
-
1
)
{
...
...
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