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
7ac7fbcc
Commit
7ac7fbcc
authored
Nov 22, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: setmode(stdin) belongs in the app, not the library
parent
709b755f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
bin/winvlc.c
bin/winvlc.c
+4
-0
src/win32/specific.c
src/win32/specific.c
+0
-2
No files found.
bin/winvlc.c
View file @
7ac7fbcc
...
...
@@ -36,6 +36,8 @@
# ifndef _WIN32_IE
# define _WIN32_IE 0x501
# endif
# include <fcntl.h>
# include <io.h>
# include <shlobj.h>
# include <wininet.h>
# define PSAPI_VERSION 1
...
...
@@ -187,6 +189,8 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
SetUnhandledExceptionFilter
(
vlc_exception_filter
);
}
_setmode
(
_fileno
(
stdin
),
_O_BINARY
);
/* Needed for pipes */
#else
/* UNDER_CE */
char
**
argv
,
psz_cmdline
[
wcslen
(
lpCmdLine
)
*
4
];
...
...
src/win32/specific.c
View file @
7ac7fbcc
...
...
@@ -83,8 +83,6 @@ void system_Init( void )
/* Set the default file-translation mode */
#if !defined( UNDER_CE )
_fmode
=
_O_BINARY
;
_setmode
(
_fileno
(
stdin
),
_O_BINARY
);
/* Needed for pipes */
timeBeginPeriod
(
5
);
#endif
...
...
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