Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
454
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
2ab3934f
Commit
2ab3934f
authored
14 years ago
by
ivoire
Browse files
Options
Downloads
Patches
Plain Diff
lua_intf: also provide the --rc-host option for backward compatibility.
parent
dee36954
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/misc/lua/intf.c
+12
-0
12 additions, 0 deletions
modules/misc/lua/intf.c
modules/misc/lua/vlc.c
+5
-0
5 additions, 0 deletions
modules/misc/lua/vlc.c
with
17 additions
and
0 deletions
modules/misc/lua/intf.c
+
12
−
0
View file @
2ab3934f
...
...
@@ -273,6 +273,18 @@ int Open_LuaIntf( vlc_object_t *p_this )
free
(
psz_telnet_passwd
);
free
(
psz_telnet_host
);
}
else
if
(
!
strcmp
(
psz_name
,
"rc"
)
)
{
char
*
psz_rc_host
=
var_CreateGetNonEmptyString
(
p_intf
,
"rc-host"
);
if
(
psz_rc_host
)
{
char
*
psz_esc_host
=
config_StringEscape
(
psz_rc_host
);
asprintf
(
&
psz_config
,
"rc={host='%s'}"
,
psz_esc_host
);
free
(
psz_esc_host
);
free
(
psz_rc_host
);
}
}
}
if
(
psz_config
)
...
...
This diff is collapsed.
Click to expand it.
modules/misc/lua/vlc.c
+
5
−
0
View file @
2ab3934f
...
...
@@ -82,6 +82,9 @@
#define TELNETPWD_LONGTEXT N_( "A single administration password is used " \
"to protect this interface. The default value is \"admin\"." )
#define TELNETPWD_DEFAULT "admin"
#define RCHOST_TEXT N_("TCP command input")
#define RCHOST_LONGTEXT N_("Accept commands over a socket rather than stdin. " \
"You can set the address and port the interface will bind to." )
static
int
vlc_sd_probe_Open
(
vlc_object_t
*
);
...
...
@@ -106,6 +109,8 @@ vlc_module_begin ()
add_string
(
"http-host"
,
NULL
,
NULL
,
HOST_TEXT
,
HOST_LONGTEXT
,
true
)
add_string
(
"http-src"
,
NULL
,
NULL
,
SRC_TEXT
,
SRC_LONGTEXT
,
true
)
add_bool
(
"http-index"
,
false
,
NULL
,
INDEX_TEXT
,
INDEX_LONGTEXT
,
true
)
set_section
(
N_
(
"Lua RC"
),
0
)
add_string
(
"rc-host"
,
NULL
,
NULL
,
RCHOST_TEXT
,
RCHOST_LONGTEXT
,
true
)
set_section
(
N_
(
"Lua Telnet"
),
0
)
add_string
(
"telnet-host"
,
"localhost"
,
NULL
,
TELNETHOST_TEXT
,
TELNETHOST_LONGTEXT
,
true
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment