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
6a0c1f90
Commit
6a0c1f90
authored
Mar 29, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system_Configure: remove unused indirection
This is too late to change command line options anyway.
parent
ef1962f8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
11 deletions
+14
-11
src/libvlc.c
src/libvlc.c
+1
-1
src/libvlc.h
src/libvlc.h
+1
-1
src/misc/darwin_specific.c
src/misc/darwin_specific.c
+3
-2
src/misc/linux_specific.c
src/misc/linux_specific.c
+2
-1
src/misc/not_specific.c
src/misc/not_specific.c
+2
-1
src/win32/specific.c
src/win32/specific.c
+5
-5
No files found.
src/libvlc.c
View file @
6a0c1f90
...
@@ -818,7 +818,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
...
@@ -818,7 +818,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
}
}
/* System specific configuration */
/* System specific configuration */
system_Configure
(
p_libvlc
,
&
i_argc
,
ppsz_argv
);
system_Configure
(
p_libvlc
,
i_argc
,
ppsz_argv
);
/* Add service discovery modules */
/* Add service discovery modules */
psz_modules
=
var_InheritString
(
p_libvlc
,
"services-discovery"
);
psz_modules
=
var_InheritString
(
p_libvlc
,
"services-discovery"
);
...
...
src/libvlc.h
View file @
6a0c1f90
...
@@ -42,7 +42,7 @@ extern void vlc_DeinitActions (libvlc_int_t *);
...
@@ -42,7 +42,7 @@ extern void vlc_DeinitActions (libvlc_int_t *);
* OS-specific initialization
* OS-specific initialization
*/
*/
void
system_Init
(
libvlc_int_t
*
,
int
*
,
const
char
*
[]
);
void
system_Init
(
libvlc_int_t
*
,
int
*
,
const
char
*
[]
);
void
system_Configure
(
libvlc_int_t
*
,
int
*
,
const
char
*
[]
);
void
system_Configure
(
libvlc_int_t
*
,
int
,
const
char
*
const
[]
);
void
system_End
(
libvlc_int_t
*
);
void
system_End
(
libvlc_int_t
*
);
/*
/*
...
...
src/misc/darwin_specific.c
View file @
6a0c1f90
...
@@ -162,10 +162,11 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
...
@@ -162,10 +162,11 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
/*****************************************************************************
/*****************************************************************************
* system_Configure: check for system specific configuration options.
* system_Configure: check for system specific configuration options.
*****************************************************************************/
*****************************************************************************/
void
system_Configure
(
libvlc_int_t
*
p_this
,
int
*
pi_argc
,
const
char
*
ppsz_argv
[]
)
void
system_Configure
(
libvlc_int_t
*
p_this
,
int
i_argc
,
const
char
*
const
ppsz_argv
[]
)
{
{
(
void
)
p_this
;
(
void
)
p_this
;
(
void
)
p
i_argc
;
(
void
)
i_argc
;
(
void
)
ppsz_argv
;
(
void
)
ppsz_argv
;
}
}
...
...
src/misc/linux_specific.c
View file @
6a0c1f90
...
@@ -115,7 +115,8 @@ void system_Init (libvlc_int_t *libvlc, int *argc, const char *argv[])
...
@@ -115,7 +115,8 @@ void system_Init (libvlc_int_t *libvlc, int *argc, const char *argv[])
(
void
)
libvlc
;
(
void
)
argc
;
(
void
)
argv
;
(
void
)
libvlc
;
(
void
)
argc
;
(
void
)
argv
;
}
}
void
system_Configure
(
libvlc_int_t
*
libvlc
,
int
*
argc
,
const
char
*
argv
[])
void
system_Configure
(
libvlc_int_t
*
libvlc
,
int
argc
,
const
char
*
const
argv
[])
{
{
(
void
)
libvlc
;
(
void
)
argc
;
(
void
)
argv
;
(
void
)
libvlc
;
(
void
)
argc
;
(
void
)
argv
;
}
}
...
...
src/misc/not_specific.c
View file @
6a0c1f90
...
@@ -39,7 +39,8 @@ void system_Init (libvlc_int_t *libvlc, int *argc, const char *argv[])
...
@@ -39,7 +39,8 @@ void system_Init (libvlc_int_t *libvlc, int *argc, const char *argv[])
(
void
)
libvlc
;
(
void
)
argc
;
(
void
)
argv
;
(
void
)
libvlc
;
(
void
)
argc
;
(
void
)
argv
;
}
}
void
system_Configure
(
libvlc_int_t
*
libvlc
,
int
*
argc
,
const
char
*
argv
[])
void
system_Configure
(
libvlc_int_t
*
libvlc
,
int
argc
,
const
char
*
const
argv
[])
{
{
(
void
)
libvlc
;
(
void
)
argc
;
(
void
)
argv
;
(
void
)
libvlc
;
(
void
)
argc
;
(
void
)
argv
;
}
}
...
...
src/win32/specific.c
View file @
6a0c1f90
...
@@ -134,7 +134,7 @@ typedef struct
...
@@ -134,7 +134,7 @@ typedef struct
char
data
[];
char
data
[];
}
vlc_ipc_data_t
;
}
vlc_ipc_data_t
;
void
system_Configure
(
libvlc_int_t
*
p_this
,
int
*
pi_argc
,
const
char
*
ppsz_argv
[]
)
void
system_Configure
(
libvlc_int_t
*
p_this
,
int
i_argc
,
const
char
*
const
ppsz_argv
[]
)
{
{
#if !defined( UNDER_CE )
#if !defined( UNDER_CE )
/* Raise default priority of the current process */
/* Raise default priority of the current process */
...
@@ -221,24 +221,24 @@ void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv
...
@@ -221,24 +221,24 @@ void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv
/* We assume that the remaining parameters are filenames
/* We assume that the remaining parameters are filenames
* and their input options */
* and their input options */
if
(
*
p
i_argc
-
1
>=
vlc_optind
)
if
(
i_argc
-
1
>=
vlc_optind
)
{
{
COPYDATASTRUCT
wm_data
;
COPYDATASTRUCT
wm_data
;
int
i_opt
;
int
i_opt
;
vlc_ipc_data_t
*
p_data
;
vlc_ipc_data_t
*
p_data
;
size_t
i_data
=
sizeof
(
*
p_data
);
size_t
i_data
=
sizeof
(
*
p_data
);
for
(
i_opt
=
vlc_optind
;
i_opt
<
*
p
i_argc
;
i_opt
++
)
for
(
i_opt
=
vlc_optind
;
i_opt
<
i_argc
;
i_opt
++
)
{
{
i_data
+=
sizeof
(
size_t
);
i_data
+=
sizeof
(
size_t
);
i_data
+=
strlen
(
ppsz_argv
[
i_opt
]
)
+
1
;
i_data
+=
strlen
(
ppsz_argv
[
i_opt
]
)
+
1
;
}
}
p_data
=
malloc
(
i_data
);
p_data
=
malloc
(
i_data
);
p_data
->
argc
=
*
p
i_argc
-
vlc_optind
;
p_data
->
argc
=
i_argc
-
vlc_optind
;
p_data
->
enqueue
=
var_InheritBool
(
p_this
,
"playlist-enqueue"
);
p_data
->
enqueue
=
var_InheritBool
(
p_this
,
"playlist-enqueue"
);
i_data
=
0
;
i_data
=
0
;
for
(
i_opt
=
vlc_optind
;
i_opt
<
*
p
i_argc
;
i_opt
++
)
for
(
i_opt
=
vlc_optind
;
i_opt
<
i_argc
;
i_opt
++
)
{
{
size_t
i_len
=
strlen
(
ppsz_argv
[
i_opt
]
)
+
1
;
size_t
i_len
=
strlen
(
ppsz_argv
[
i_opt
]
)
+
1
;
/* Windows will never switch to an architecture
/* Windows will never switch to an architecture
...
...
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