Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
9e63dcf8
Commit
9e63dcf8
authored
Jul 24, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/net.c, modules/control/rc.c: win32 fixes.
parent
3e784cb1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
modules/control/rc.c
modules/control/rc.c
+6
-5
src/misc/net.c
src/misc/net.c
+1
-1
No files found.
modules/control/rc.c
View file @
9e63dcf8
...
@@ -115,8 +115,8 @@ void Printf( intf_thread_t *p_intf, const char *psz_fmt, ... )
...
@@ -115,8 +115,8 @@ void Printf( intf_thread_t *p_intf, const char *psz_fmt, ... )
#define TTY_TEXT N_("Fake TTY")
#define TTY_TEXT N_("Fake TTY")
#define TTY_LONGTEXT N_("Force the rc module to use stdin as if it was a TTY.")
#define TTY_LONGTEXT N_("Force the rc module to use stdin as if it was a TTY.")
#define
CF
_TEXT N_("Command input")
#define
HOST
_TEXT N_("Command input")
#define
CF
_LONGTEXT N_("Accept commands over a socket rather than stdin. " \
#define
HOST
_LONGTEXT N_("Accept commands over a socket rather than stdin. " \
"You can set the address and port the interface will bind to." )
"You can set the address and port the interface will bind to." )
vlc_module_begin
();
vlc_module_begin
();
...
@@ -125,7 +125,7 @@ vlc_module_begin();
...
@@ -125,7 +125,7 @@ vlc_module_begin();
#ifdef HAVE_ISATTY
#ifdef HAVE_ISATTY
add_bool
(
"rc-fake-tty"
,
0
,
NULL
,
TTY_TEXT
,
TTY_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"rc-fake-tty"
,
0
,
NULL
,
TTY_TEXT
,
TTY_LONGTEXT
,
VLC_TRUE
);
#endif
#endif
add_string
(
"rc-host"
,
0
,
NULL
,
CF_TEXT
,
CF
_LONGTEXT
,
VLC_TRUE
);
add_string
(
"rc-host"
,
0
,
NULL
,
HOST_TEXT
,
HOST
_LONGTEXT
,
VLC_TRUE
);
set_capability
(
"interface"
,
20
);
set_capability
(
"interface"
,
20
);
set_callbacks
(
Activate
,
Deactivate
);
set_callbacks
(
Activate
,
Deactivate
);
vlc_module_end
();
vlc_module_end
();
...
@@ -907,7 +907,8 @@ vlc_bool_t ReadWin32( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
...
@@ -907,7 +907,8 @@ vlc_bool_t ReadWin32( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
INTF_IDLE_SLEEP
/
1000
)
==
WAIT_OBJECT_0
)
INTF_IDLE_SLEEP
/
1000
)
==
WAIT_OBJECT_0
)
{
{
while
(
!
p_intf
->
b_die
&&
*
pi_size
<
MAX_LINE_LENGTH
&&
while
(
!
p_intf
->
b_die
&&
*
pi_size
<
MAX_LINE_LENGTH
&&
ReadConsoleInput
(
p_sys
->
hConsoleIn
,
&
input_record
,
1
,
&
i_dw
)
)
ReadConsoleInput
(
p_intf
->
p_sys
->
hConsoleIn
,
&
input_record
,
1
,
&
i_dw
)
)
{
{
if
(
input_record
.
EventType
!=
KEY_EVENT
||
if
(
input_record
.
EventType
!=
KEY_EVENT
||
!
input_record
.
Event
.
KeyEvent
.
bKeyDown
||
!
input_record
.
Event
.
KeyEvent
.
bKeyDown
||
...
@@ -967,7 +968,7 @@ vlc_bool_t ReadCommand( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
...
@@ -967,7 +968,7 @@ vlc_bool_t ReadCommand( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
#ifdef WIN32
#ifdef WIN32
if
(
p_intf
->
p_sys
->
i_socket
==
-
1
)
if
(
p_intf
->
p_sys
->
i_socket
==
-
1
)
return
ReadWin32
(
p_intf
,
p_buffer
,
pi_size
,
pb_complete
);
return
ReadWin32
(
p_intf
,
p_buffer
,
pi_size
);
#endif
#endif
while
(
!
p_intf
->
b_die
&&
*
pi_size
<
MAX_LINE_LENGTH
&&
while
(
!
p_intf
->
b_die
&&
*
pi_size
<
MAX_LINE_LENGTH
&&
...
...
src/misc/net.c
View file @
9e63dcf8
...
@@ -194,7 +194,7 @@ int __net_Accept( vlc_object_t *p_this, int fd, mtime_t i_wait )
...
@@ -194,7 +194,7 @@ int __net_Accept( vlc_object_t *p_this, int fd, mtime_t i_wait )
else
if
(
i_ret
<
0
)
else
if
(
i_ret
<
0
)
{
{
#ifdef WIN32
#ifdef WIN32
msg_Err
(
p_this
,
"network select error (%
s
)"
,
WSAGetLastError
()
);
msg_Err
(
p_this
,
"network select error (%
i
)"
,
WSAGetLastError
()
);
#else
#else
msg_Err
(
p_this
,
"network select error (%s)"
,
strerror
(
errno
)
);
msg_Err
(
p_this
,
"network select error (%s)"
,
strerror
(
errno
)
);
#endif
#endif
...
...
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