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
2ac5cb16
Commit
2ac5cb16
authored
Sep 26, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/control/rc.c: added an --rc-quiet option for win32.
parent
b994d951
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
modules/control/rc.c
modules/control/rc.c
+18
-0
No files found.
modules/control/rc.c
View file @
2ac5cb16
...
@@ -129,6 +129,15 @@ void Printf( intf_thread_t *p_intf, const char *psz_fmt, ... )
...
@@ -129,6 +129,15 @@ void Printf( intf_thread_t *p_intf, const char *psz_fmt, ... )
#define HOST_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." )
#ifdef WIN32
#define QUIET_TEXT N_("Do not open a DOS command box interface")
#define QUIET_LONGTEXT N_( \
"By default the rc interface plugin will start a DOS command box. " \
"Enabling the quiet mode will not bring this command box but can also " \
"be pretty annoying when you want to stop VLC and no video window is " \
"open." )
#endif
vlc_module_begin
();
vlc_module_begin
();
set_description
(
_
(
"Remote control interface"
)
);
set_description
(
_
(
"Remote control interface"
)
);
add_bool
(
"rc-show-pos"
,
0
,
NULL
,
POS_TEXT
,
POS_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"rc-show-pos"
,
0
,
NULL
,
POS_TEXT
,
POS_LONGTEXT
,
VLC_TRUE
);
...
@@ -137,6 +146,11 @@ vlc_module_begin();
...
@@ -137,6 +146,11 @@ vlc_module_begin();
#endif
#endif
add_string
(
"rc-unix"
,
0
,
NULL
,
UNIX_TEXT
,
UNIX_LONGTEXT
,
VLC_TRUE
);
add_string
(
"rc-unix"
,
0
,
NULL
,
UNIX_TEXT
,
UNIX_LONGTEXT
,
VLC_TRUE
);
add_string
(
"rc-host"
,
0
,
NULL
,
HOST_TEXT
,
HOST_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
);
#endif
set_capability
(
"interface"
,
20
);
set_capability
(
"interface"
,
20
);
set_callbacks
(
Activate
,
Deactivate
);
set_callbacks
(
Activate
,
Deactivate
);
vlc_module_end
();
vlc_module_end
();
...
@@ -243,7 +257,11 @@ static int Activate( vlc_object_t *p_this )
...
@@ -243,7 +257,11 @@ static int Activate( vlc_object_t *p_this )
p_intf
->
pf_run
=
Run
;
p_intf
->
pf_run
=
Run
;
#ifdef WIN32
if
(
!
config_GetInt
(
p_intf
,
"rc-quiet"
)
)
{
CONSOLE_INTRO_MSG
;
}
#else
CONSOLE_INTRO_MSG
;
CONSOLE_INTRO_MSG
;
#endif
printf
(
_
(
"Remote control interface initialized, `h' for help
\n
"
)
);
printf
(
_
(
"Remote control interface initialized, `h' for help
\n
"
)
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
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