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
698feb97
Commit
698feb97
authored
Nov 12, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/vlc.c: ported to WinCE.
parent
ddf6a273
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
7 deletions
+34
-7
src/extras/libc.c
src/extras/libc.c
+4
-4
src/vlc.c
src/vlc.c
+30
-3
No files found.
src/extras/libc.c
View file @
698feb97
...
...
@@ -621,12 +621,12 @@ char **vlc_parse_cmdline( const char *psz_cmdline, int *i_args )
{
int
argc
=
0
;
char
**
argv
=
0
;
char
*
s
,
*
psz_parser
,
*
psz_arg
;
char
*
s
,
*
psz_parser
,
*
psz_arg
,
*
psz_orig
;
int
i_bcount
=
0
;
if
(
!
psz_cmdline
)
return
0
;
psz_
cmdline
=
strdup
(
psz_cmdline
);
psz_arg
=
psz_parser
=
s
=
psz_
cmdline
;
psz_
orig
=
strdup
(
psz_cmdline
);
psz_arg
=
psz_parser
=
s
=
psz_
orig
;
while
(
*
s
)
{
...
...
@@ -686,6 +686,6 @@ char **vlc_parse_cmdline( const char *psz_cmdline, int *i_args )
}
if
(
i_args
)
*
i_args
=
argc
;
free
(
psz_
cmdline
);
free
(
psz_
orig
);
return
argv
;
}
src/vlc.c
View file @
698feb97
...
...
@@ -41,7 +41,7 @@
/*****************************************************************************
* Local prototypes.
*****************************************************************************/
#if
ndef WIN32
#if
!defined(WIN32) && !defined(UNDER_CE)
static
void
SigHandler
(
int
i_signal
);
#endif
...
...
@@ -80,7 +80,7 @@ int main( int i_argc, char *ppsz_argv[] )
return
i_ret
;
}
#if
ndef WIN32
#if
!defined(WIN32) && !defined(UNDER_CE)
/* Set the signal handlers. SIGTERM is not intercepted, because we need at
* least one method to kill the program when all other methods failed, and
* when we don't want to use SIGKILL.
...
...
@@ -113,7 +113,7 @@ int main( int i_argc, char *ppsz_argv[] )
return
i_ret
;
}
#if
ndef WIN32
#if
!defined(WIN32) && !defined(UNDER_CE)
/*****************************************************************************
* SigHandler: system signal handler
*****************************************************************************
...
...
@@ -155,3 +155,30 @@ static void SigHandler( int i_signal )
}
}
#endif
#if defined(UNDER_CE)
/*****************************************************************************
* WinMain: parse command line, start interface and spawn threads. (WinCE only)
*****************************************************************************/
int
WINAPI
WinMain
(
HINSTANCE
hInstance
,
HINSTANCE
hPrevInstance
,
LPTSTR
lpCmdLine
,
int
nCmdShow
)
{
char
**
argv
,
psz_cmdline
[
MAX_PATH
];
int
argc
,
i_ret
;
WideCharToMultiByte
(
CP_ACP
,
WC_DEFAULTCHAR
,
lpCmdLine
,
-
1
,
psz_cmdline
,
MAX_PATH
,
NULL
,
NULL
);
argv
=
vlc_parse_cmdline
(
psz_cmdline
,
&
argc
);
argv
=
realloc
(
argv
,
(
argc
+
1
)
*
sizeof
(
char
*
)
);
if
(
!
argv
)
return
-
1
;
if
(
argc
)
memmove
(
argv
+
1
,
argv
,
argc
);
argv
[
0
]
=
strdup
(
""
);
/* Fake program path */
i_ret
=
main
(
argc
,
argv
);
/* No need to free the argv memory */
return
i_ret
;
}
#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