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
d10cd708
Commit
d10cd708
authored
Oct 01, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
That shouldn't have been part of the previous commit
parent
5aded14b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
20 deletions
+7
-20
modules/control/rc.c
modules/control/rc.c
+7
-18
src/network/io.c
src/network/io.c
+0
-2
No files found.
modules/control/rc.c
View file @
d10cd708
...
@@ -1941,26 +1941,15 @@ vlc_bool_t ReadCommand( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
...
@@ -1941,26 +1941,15 @@ vlc_bool_t ReadCommand( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
}
}
#endif
#endif
int
i_socket
=
p_intf
->
p_sys
->
i_socket
==
-
1
?
0
:
p_intf
->
p_sys
->
i_socket
;
while
(
!
intf_ShouldDie
(
p_intf
)
&&
*
pi_size
<
MAX_LINE_LENGTH
&&
/* 0 == STDIN_FILENO */
(
i_read
=
net_Read
(
p_intf
,
p_intf
->
p_sys
->
i_socket
==
-
1
?
0
/*STDIN_FILENO*/
:
p_intf
->
p_sys
->
i_socket
,
NULL
,
while
(
!
intf_ShouldDie
(
p_intf
)
&&
*
pi_size
<
MAX_LINE_LENGTH
)
(
uint8_t
*
)
p_buffer
+
*
pi_size
,
1
,
VLC_FALSE
)
)
>
0
)
{
{
i_read
=
net_Read
(
p_intf
,
i_socket
,
NULL
,
if
(
p_buffer
[
*
pi_size
]
==
'\r'
||
p_buffer
[
*
pi_size
]
==
'\n'
)
(
uint8_t
*
)
p_buffer
+
*
pi_size
,
1
,
VLC_FALSE
);
if
(
i_read
>
0
)
{
if
(
p_buffer
[
*
pi_size
]
==
'\r'
||
p_buffer
[
*
pi_size
]
==
'\n'
)
break
;
(
*
pi_size
)
++
;
}
else
if
(
i_read
==
0
)
break
;
else
if
(
errno
!=
EINTR
)
/* we try again if a system call was interrupted */
break
;
break
;
(
*
pi_size
)
++
;
}
}
/* Connection closed */
/* Connection closed */
...
...
src/network/io.c
View file @
d10cd708
...
@@ -267,8 +267,6 @@ net_ReadInner (vlc_object_t *restrict p_this, unsigned fdc, const int *fdv,
...
@@ -267,8 +267,6 @@ net_ReadInner (vlc_object_t *restrict p_this, unsigned fdc, const int *fdv,
#if defined(WIN32) || defined(UNDER_CE)
#if defined(WIN32) || defined(UNDER_CE)
WSASetLastError
(
WSAEINTR
);
WSASetLastError
(
WSAEINTR
);
#else
#else
if
(
p_this
->
b_die
)
printf
(
"b_die
\n
"
);
else
printf
(
"p_libvlc->b_die
\n
"
);
errno
=
EINTR
;
errno
=
EINTR
;
#endif
#endif
goto
error
;
goto
error
;
...
...
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