Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
f44e0d59
Commit
f44e0d59
authored
Jul 28, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not create a console under Wine
Not only is an extra console obnoxious, but freopen() crashes.
parent
e8baa846
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/vlc_interface.h
include/vlc_interface.h
+2
-2
src/libvlc.c
src/libvlc.c
+2
-2
No files found.
include/vlc_interface.h
View file @
f44e0d59
...
@@ -114,7 +114,7 @@ VLC_API void libvlc_Quit( libvlc_int_t * );
...
@@ -114,7 +114,7 @@ VLC_API void libvlc_Quit( libvlc_int_t * );
*****************************************************************************/
*****************************************************************************/
#if defined( WIN32 ) && !defined( UNDER_CE )
#if defined( WIN32 ) && !defined( UNDER_CE )
# define CONSOLE_INTRO_MSG \
# define CONSOLE_INTRO_MSG \
if( !getenv( "PWD" )
|| !getenv( "PS1" ) )
/* detect cygwin shell
*/
\
if( !getenv( "PWD" )
)
/* detect Cygwin shell or Wine
*/
\
{ \
{ \
AllocConsole(); \
AllocConsole(); \
freopen( "CONOUT$", "w", stdout ); \
freopen( "CONOUT$", "w", stdout ); \
...
@@ -128,7 +128,7 @@ VLC_API void libvlc_Quit( libvlc_int_t * );
...
@@ -128,7 +128,7 @@ VLC_API void libvlc_Quit( libvlc_int_t * );
"directory where you installed VLC and run " \
"directory where you installed VLC and run " \
"\"vlc -I qt\"\n") )
"\"vlc -I qt\"\n") )
#else
#else
# define CONSOLE_INTRO_MSG
# define CONSOLE_INTRO_MSG
(void)0
#endif
#endif
/* Interface dialog ids for dialog providers */
/* Interface dialog ids for dialog providers */
...
...
src/libvlc.c
View file @
f44e0d59
...
@@ -1894,7 +1894,7 @@ static void ShowConsole( bool b_dofile )
...
@@ -1894,7 +1894,7 @@ static void ShowConsole( bool b_dofile )
# ifndef UNDER_CE
# ifndef UNDER_CE
FILE
*
f_help
=
NULL
;
FILE
*
f_help
=
NULL
;
if
(
getenv
(
"PWD"
)
&&
getenv
(
"PS1"
)
)
return
;
/* cygwin shell
*/
if
(
getenv
(
"PWD"
)
)
return
;
/* Cygwin shell or Wine
*/
AllocConsole
();
AllocConsole
();
/* Use the ANSI code page (e.g. Windows-1252) as expected by the LibVLC
/* Use the ANSI code page (e.g. Windows-1252) as expected by the LibVLC
...
@@ -1928,7 +1928,7 @@ static void PauseConsole( void )
...
@@ -1928,7 +1928,7 @@ static void PauseConsole( void )
{
{
# ifndef UNDER_CE
# ifndef UNDER_CE
if
(
getenv
(
"PWD"
)
&&
getenv
(
"PS1"
)
)
return
;
/* cygwin shell
*/
if
(
getenv
(
"PWD"
)
)
return
;
/* Cygwin shell or Wine
*/
utf8_fprintf
(
stderr
,
_
(
"
\n
Press the RETURN key to continue...
\n
"
)
);
utf8_fprintf
(
stderr
,
_
(
"
\n
Press the RETURN key to continue...
\n
"
)
);
getchar
();
getchar
();
...
...
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