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
04574a29
Commit
04574a29
authored
Apr 15, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also remove --rc-unix from Win32 port for obvious reasons
parent
37fa2c88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
modules/control/rc.c
modules/control/rc.c
+11
-8
No files found.
modules/control/rc.c
View file @
04574a29
...
...
@@ -183,15 +183,16 @@ vlc_module_begin();
set_subcategory
(
SUBCAT_INTERFACE_MAIN
);
set_description
(
_
(
"Remote control interface"
)
);
add_bool
(
"rc-show-pos"
,
0
,
NULL
,
POS_TEXT
,
POS_LONGTEXT
,
VLC_TRUE
);
#if defined (HAVE_ISATTY) && !defined (WIN32)
add_bool
(
"rc-fake-tty"
,
0
,
NULL
,
TTY_TEXT
,
TTY_LONGTEXT
,
VLC_TRUE
);
#endif
add_string
(
"rc-unix"
,
0
,
NULL
,
UNIX_TEXT
,
UNIX_LONGTEXT
,
VLC_TRUE
);
add_string
(
"rc-host"
,
0
,
NULL
,
HOST_TEXT
,
HOST_LONGTEXT
,
VLC_TRUE
);
#ifdef WIN32
add_bool
(
"rc-quiet"
,
0
,
NULL
,
QUIET_TEXT
,
QUIET_LONGTEXT
,
VLC_FALSE
);
#else
#if defined (HAVE_ISATTY)
add_bool
(
"rc-fake-tty"
,
0
,
NULL
,
TTY_TEXT
,
TTY_LONGTEXT
,
VLC_TRUE
);
#endif
add_string
(
"rc-unix"
,
0
,
NULL
,
UNIX_TEXT
,
UNIX_LONGTEXT
,
VLC_TRUE
);
#endif
add_string
(
"rc-host"
,
0
,
NULL
,
HOST_TEXT
,
HOST_LONGTEXT
,
VLC_TRUE
);
set_capability
(
"interface"
,
20
);
set_callbacks
(
Activate
,
Deactivate
);
...
...
@@ -206,7 +207,8 @@ static int Activate( vlc_object_t *p_this )
char
*
psz_host
,
*
psz_unix_path
;
int
*
pi_socket
=
NULL
;
#if defined(HAVE_ISATTY) && !defined(WIN32)
#ifndef WIN32
#if defined(HAVE_ISATTY)
/* Check that stdin is a TTY */
if
(
!
config_GetInt
(
p_intf
,
"rc-fake-tty"
)
&&
!
isatty
(
0
)
)
{
...
...
@@ -220,7 +222,7 @@ static int Activate( vlc_object_t *p_this )
{
int
i_socket
;
#if
!defined(AF_LOCAL) || defined(WIN32)
#if
ndef AF_LOCAL
msg_Warn
(
p_intf
,
"your OS doesn't support filesystem sockets"
);
free
(
psz_unix_path
);
return
VLC_EGENERIC
;
...
...
@@ -278,8 +280,9 @@ static int Activate( vlc_object_t *p_this )
}
pi_socket
[
0
]
=
i_socket
;
pi_socket
[
1
]
=
-
1
;
#endif
#endif
/* AF_LOCAL */
}
#endif
/* !WIN32 */
if
(
(
pi_socket
==
NULL
)
&&
(
psz_host
=
config_GetPsz
(
p_intf
,
"rc-host"
)
)
!=
NULL
)
...
...
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