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
e55fc1b4
Commit
e55fc1b4
authored
Nov 23, 2004
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* add core option --vlm-conf
specifies a vlm configuration file to load when vlm is launched
parent
86306d01
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
src/libvlc.h
src/libvlc.h
+7
-0
src/misc/vlm.c
src/misc/vlm.c
+23
-1
No files found.
src/libvlc.h
View file @
e55fc1b4
...
...
@@ -626,6 +626,11 @@ static char *ppsz_align_descriptions[] =
"This option allows you to specify an additional path for VLC to look " \
"for its modules.")
#define VLM_CONF_TEXT N_("VLM configuration file")
#define VLM_CONF_LONGTEXT N_( \
"This option allows you to specify a VLM configuration file that will " \
"be read when VLM is launched.")
#define PLUGINS_CACHE_TEXT N_("Use a plugins cache")
#define PLUGINS_CACHE_LONGTEXT N_( \
"This option allows you to use a plugins cache which will greatly " \
...
...
@@ -1048,6 +1053,8 @@ vlc_module_begin();
PLUGINS_CACHE_LONGTEXT
,
VLC_TRUE
);
add_directory
(
"plugin-path"
,
NULL
,
NULL
,
PLUGIN_PATH_TEXT
,
PLUGIN_PATH_LONGTEXT
,
VLC_TRUE
);
add_string
(
"vlm-conf"
,
NULL
,
NULL
,
VLM_CONF_TEXT
,
VLM_CONF_LONGTEXT
,
VLC_TRUE
);
#if !defined(WIN32)
add_bool
(
"daemon"
,
0
,
NULL
,
DAEMON_TEXT
,
DAEMON_LONGTEXT
,
VLC_TRUE
);
...
...
src/misc/vlm.c
View file @
e55fc1b4
...
...
@@ -116,6 +116,28 @@ vlm_t *__vlm_New ( vlc_object_t *p_this )
return
NULL
;
}
/* try loading the vlm conf file given by --vlm-conf */
char
*
psz_vlmconf
=
config_GetPsz
(
p_vlm
,
"vlm-conf"
);
if
(
psz_vlmconf
&&
*
psz_vlmconf
)
{
vlm_message_t
*
p_message
=
NULL
;
char
*
psz_buffer
=
NULL
;
msg_Dbg
(
p_this
,
"loading vlm conf ..."
);
asprintf
(
&
psz_buffer
,
"load %s"
,
psz_vlmconf
);
if
(
psz_buffer
)
{
msg_Dbg
(
p_this
,
psz_buffer
);
if
(
vlm_ExecuteCommand
(
p_vlm
,
psz_buffer
,
&
p_message
)
){
msg_Warn
(
p_this
,
"error while loading the vlm conf file"
);
}
free
(
p_message
);
free
(
psz_buffer
);
}
}
free
(
psz_vlmconf
);
return
p_vlm
;
}
...
...
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