Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
4bfb6dac
Commit
4bfb6dac
authored
Feb 11, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Should fix vlc-help.txt problem (untested) (Refs:#517)
parent
b26eed49
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/libvlc.c
src/libvlc.c
+7
-7
No files found.
src/libvlc.c
View file @
4bfb6dac
...
@@ -112,7 +112,7 @@ static void ListModules ( vlc_t * );
...
@@ -112,7 +112,7 @@ static void ListModules ( vlc_t * );
static
void
Version
(
void
);
static
void
Version
(
void
);
#ifdef WIN32
#ifdef WIN32
static
void
ShowConsole
(
v
oid
);
static
void
ShowConsole
(
v
lc_bool_t
);
static
void
PauseConsole
(
void
);
static
void
PauseConsole
(
void
);
#endif
#endif
static
int
ConsoleWidth
(
void
);
static
int
ConsoleWidth
(
void
);
...
@@ -587,7 +587,7 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
...
@@ -587,7 +587,7 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
if
(
config_LoadCmdLine
(
p_vlc
,
&
i_argc
,
ppsz_argv
,
VLC_FALSE
)
)
if
(
config_LoadCmdLine
(
p_vlc
,
&
i_argc
,
ppsz_argv
,
VLC_FALSE
)
)
{
{
#ifdef WIN32
#ifdef WIN32
ShowConsole
();
ShowConsole
(
VLC_FALSE
);
/* Pause the console because it's destroyed when we exit */
/* Pause the console because it's destroyed when we exit */
fprintf
(
stderr
,
"The command line options couldn't be loaded, check "
fprintf
(
stderr
,
"The command line options couldn't be loaded, check "
"that they are valid.
\n
"
);
"that they are valid.
\n
"
);
...
@@ -2119,7 +2119,7 @@ static int GetFilenames( vlc_t *p_vlc, int i_argc, char *ppsz_argv[] )
...
@@ -2119,7 +2119,7 @@ static int GetFilenames( vlc_t *p_vlc, int i_argc, char *ppsz_argv[] )
static
void
Help
(
vlc_t
*
p_this
,
char
const
*
psz_help_name
)
static
void
Help
(
vlc_t
*
p_this
,
char
const
*
psz_help_name
)
{
{
#ifdef WIN32
#ifdef WIN32
ShowConsole
();
ShowConsole
(
VLC_TRUE
);
#endif
#endif
if
(
psz_help_name
&&
!
strcmp
(
psz_help_name
,
"help"
)
)
if
(
psz_help_name
&&
!
strcmp
(
psz_help_name
,
"help"
)
)
...
@@ -2442,7 +2442,7 @@ static void ListModules( vlc_t *p_this )
...
@@ -2442,7 +2442,7 @@ static void ListModules( vlc_t *p_this )
memset
(
psz_spaces
,
' '
,
22
);
memset
(
psz_spaces
,
' '
,
22
);
#ifdef WIN32
#ifdef WIN32
ShowConsole
();
ShowConsole
(
VLC_TRUE
);
#endif
#endif
/* List all modules */
/* List all modules */
...
@@ -2482,7 +2482,7 @@ static void ListModules( vlc_t *p_this )
...
@@ -2482,7 +2482,7 @@ static void ListModules( vlc_t *p_this )
static
void
Version
(
void
)
static
void
Version
(
void
)
{
{
#ifdef WIN32
#ifdef WIN32
ShowConsole
();
ShowConsole
(
VLC_TRUE
);
#endif
#endif
fprintf
(
stdout
,
_
(
"VLC version %s
\n
"
),
VLC_Version
()
);
fprintf
(
stdout
,
_
(
"VLC version %s
\n
"
),
VLC_Version
()
);
...
@@ -2505,7 +2505,7 @@ static void Version( void )
...
@@ -2505,7 +2505,7 @@ static void Version( void )
* This function is useful only on Win32.
* This function is useful only on Win32.
*****************************************************************************/
*****************************************************************************/
#ifdef WIN32
/* */
#ifdef WIN32
/* */
static
void
ShowConsole
(
v
oid
)
static
void
ShowConsole
(
v
lc_bool_t
b_dofile
)
{
{
# ifndef UNDER_CE
# ifndef UNDER_CE
FILE
*
f_help
;
FILE
*
f_help
;
...
@@ -2517,7 +2517,7 @@ static void ShowConsole( void )
...
@@ -2517,7 +2517,7 @@ static void ShowConsole( void )
freopen
(
"CONOUT$"
,
"w"
,
stderr
);
freopen
(
"CONOUT$"
,
"w"
,
stderr
);
freopen
(
"CONIN$"
,
"r"
,
stdin
);
freopen
(
"CONIN$"
,
"r"
,
stdin
);
if
(
(
f_help
=
fopen
(
"vlc-help.txt"
,
"wt"
))
)
if
(
b_dofile
&&
(
f_help
=
fopen
(
"vlc-help.txt"
,
"wt"
))
)
{
{
fclose
(
f_help
);
fclose
(
f_help
);
freopen
(
"vlc-help.txt"
,
"wt"
,
stdout
);
freopen
(
"vlc-help.txt"
,
"wt"
,
stdout
);
...
...
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