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
bd4da01e
Commit
bd4da01e
authored
Sep 26, 2006
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- mozilla: cleaned up configuration arguments
parent
7d8c21af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
13 deletions
+28
-13
mozilla/vlcplugin.cpp
mozilla/vlcplugin.cpp
+28
-13
No files found.
mozilla/vlcplugin.cpp
View file @
bd4da01e
...
...
@@ -67,15 +67,8 @@ static int boolValue(const char *value) {
NPError
VlcPlugin
::
init
(
int
argc
,
char
*
const
argn
[],
char
*
const
argv
[])
{
/* prepare VLC command line */
char
*
ppsz_argv
[
32
]
=
{
"vlc"
,
"-vv"
,
"--no-stats"
,
"--no-media-library"
,
"--intf"
,
"dummy"
,
};
int
ppsz_argc
=
6
;
char
*
ppsz_argv
[
32
]
=
{
"vlc"
};
int
ppsz_argc
=
1
;
/* locate VLC module path */
#ifdef XP_MACOSX
...
...
@@ -94,20 +87,42 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
{
if
(
i_type
==
REG_SZ
)
{
strcat
(
p_data
,
"
\\
vlc"
);
ppsz_argv
[
0
]
=
p_data
;
strcat
(
p_data
,
"
\\
plugins"
);
ppsz_argv
[
ppsz_argc
++
]
=
"--plugin-path"
;
ppsz_argv
[
ppsz_argc
++
]
=
p_data
;
}
}
RegCloseKey
(
h_key
);
}
ppsz_argv
[
ppsz_argc
++
]
=
"--no-one-instance"
;
#if 0
if
(
IsDebuggerPresent
()
)
{
/*
** VLC default threading mechanism is designed to be as compatible
** with POSIX as possible. However when debugged on win32, threads
** lose signals and eventually VLC get stuck during initialization.
** threading support can be configured to be more debugging friendly
** but it will be less compatible with POSIX.
** This is done by initializing with the following options:
*/
ppsz_argv
[
ppsz_argc
++
]
=
"--fast-mutex"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--win9x-cv-method=1"
;
}
#if 0
ppsz_argv[0] = "C:\\Cygwin\\home\\damienf\\vlc-trunk\\vlc";
#endif
#endif
/* XP_MACOSX */
/* common settings */
ppsz_argv
[
ppsz_argc
++
]
=
"-vv"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--no-stats"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--no-media-library"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--intf"
;
ppsz_argv
[
ppsz_argc
++
]
=
"dummy"
;
const
char
*
version
=
NULL
;
/* parse plugin arguments */
...
...
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