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
26c146e8
Commit
26c146e8
authored
May 31, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
intf_Create: remove unused parameters
parent
40caaae0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
15 deletions
+8
-15
include/vlc_interface.h
include/vlc_interface.h
+2
-2
modules/codec/cmml/cmml.c
modules/codec/cmml/cmml.c
+1
-1
modules/control/ntservice.c
modules/control/ntservice.c
+1
-1
modules/control/rc.c
modules/control/rc.c
+1
-1
src/interface/interface.c
src/interface/interface.c
+2
-9
src/libvlc-common.c
src/libvlc-common.c
+1
-1
No files found.
include/vlc_interface.h
View file @
26c146e8
...
@@ -116,8 +116,8 @@ struct intf_dialog_args_t
...
@@ -116,8 +116,8 @@ struct intf_dialog_args_t
/*****************************************************************************
/*****************************************************************************
* Prototypes
* Prototypes
*****************************************************************************/
*****************************************************************************/
#define intf_Create(a,b
,c,d) __intf_Create(VLC_OBJECT(a),b,c,d
)
#define intf_Create(a,b
) __intf_Create(VLC_OBJECT(a),b
)
VLC_EXPORT
(
intf_thread_t
*
,
__intf_Create
,
(
vlc_object_t
*
,
const
char
*
,
int
,
const
char
*
const
*
)
);
VLC_EXPORT
(
intf_thread_t
*
,
__intf_Create
,
(
vlc_object_t
*
,
const
char
*
)
);
VLC_EXPORT
(
int
,
intf_RunThread
,
(
intf_thread_t
*
)
);
VLC_EXPORT
(
int
,
intf_RunThread
,
(
intf_thread_t
*
)
);
VLC_EXPORT
(
void
,
intf_StopThread
,
(
intf_thread_t
*
)
);
VLC_EXPORT
(
void
,
intf_StopThread
,
(
intf_thread_t
*
)
);
...
...
modules/codec/cmml/cmml.c
View file @
26c146e8
...
@@ -131,7 +131,7 @@ static int OpenDecoder( vlc_object_t *p_this )
...
@@ -131,7 +131,7 @@ static int OpenDecoder( vlc_object_t *p_this )
vlc_object_release
(
p_input
);
vlc_object_release
(
p_input
);
/* initialise the CMML responder interface */
/* initialise the CMML responder interface */
p_sys
->
p_intf
=
intf_Create
(
p_dec
,
"cmml"
,
0
,
NULL
);
p_sys
->
p_intf
=
intf_Create
(
p_dec
,
"cmml"
);
intf_RunThread
(
p_sys
->
p_intf
);
intf_RunThread
(
p_sys
->
p_intf
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
modules/control/ntservice.c
View file @
26c146e8
...
@@ -319,7 +319,7 @@ static void WINAPI ServiceDispatch( DWORD numArgs, char **args )
...
@@ -319,7 +319,7 @@ static void WINAPI ServiceDispatch( DWORD numArgs, char **args )
sprintf
(
psz_temp
,
"%s,none"
,
psz_module
);
sprintf
(
psz_temp
,
"%s,none"
,
psz_module
);
/* Try to create the interface */
/* Try to create the interface */
p_new_intf
=
intf_Create
(
p_intf
,
psz_temp
,
0
,
NULL
);
p_new_intf
=
intf_Create
(
p_intf
,
psz_temp
);
if
(
p_new_intf
==
NULL
)
if
(
p_new_intf
==
NULL
)
{
{
msg_Err
(
p_intf
,
"interface
\"
%s
\"
initialization failed"
,
msg_Err
(
p_intf
,
"interface
\"
%s
\"
initialization failed"
,
...
...
modules/control/rc.c
View file @
26c146e8
...
@@ -1537,7 +1537,7 @@ static int Intf( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1537,7 +1537,7 @@ static int Intf( vlc_object_t *p_this, char const *psz_cmd,
VLC_UNUSED
(
psz_cmd
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
p_data
);
VLC_UNUSED
(
psz_cmd
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
p_data
);
intf_thread_t
*
p_newintf
=
NULL
;
intf_thread_t
*
p_newintf
=
NULL
;
p_newintf
=
intf_Create
(
p_this
->
p_libvlc
,
newval
.
psz_string
,
0
,
NULL
);
p_newintf
=
intf_Create
(
p_this
->
p_libvlc
,
newval
.
psz_string
);
if
(
p_newintf
)
if
(
p_newintf
)
{
{
if
(
intf_RunThread
(
p_newintf
)
)
if
(
intf_RunThread
(
p_newintf
)
)
...
...
src/interface/interface.c
View file @
26c146e8
...
@@ -80,16 +80,12 @@ static void intf_Destroy( vlc_object_t *obj )
...
@@ -80,16 +80,12 @@ static void intf_Destroy( vlc_object_t *obj )
*****************************************************************************/
*****************************************************************************/
/**
/**
* Create the interface, and prepare it for main loop.
* Create the interface, and prepare it for main loop.
* You can give some additional options to be used for interface initialization
*
*
* \param p_this the calling vlc_object_t
* \param p_this the calling vlc_object_t
* \param psz_module a preferred interface module
* \param psz_module a preferred interface module
* \param i_options number additional options
* \param ppsz_options additional option strings
* \return a pointer to the created interface thread, NULL on error
* \return a pointer to the created interface thread, NULL on error
*/
*/
intf_thread_t
*
__intf_Create
(
vlc_object_t
*
p_this
,
const
char
*
psz_module
,
intf_thread_t
*
__intf_Create
(
vlc_object_t
*
p_this
,
const
char
*
psz_module
)
int
i_options
,
const
char
*
const
*
ppsz_options
)
{
{
intf_thread_t
*
p_intf
;
intf_thread_t
*
p_intf
;
int
i
;
int
i
;
...
@@ -108,9 +104,6 @@ intf_thread_t* __intf_Create( vlc_object_t *p_this, const char *psz_module,
...
@@ -108,9 +104,6 @@ intf_thread_t* __intf_Create( vlc_object_t *p_this, const char *psz_module,
p_intf
->
b_interaction
=
false
;
p_intf
->
b_interaction
=
false
;
p_intf
->
b_should_run_on_first_thread
=
false
;
p_intf
->
b_should_run_on_first_thread
=
false
;
for
(
i
=
0
;
i
<
i_options
;
i
++
)
var_OptionParse
(
p_this
,
ppsz_options
[
i
],
true
);
/* Choose the best module */
/* Choose the best module */
p_intf
->
psz_intf
=
strdup
(
psz_module
);
p_intf
->
psz_intf
=
strdup
(
psz_module
);
p_intf
->
p_module
=
module_Need
(
p_intf
,
"interface"
,
psz_module
,
false
);
p_intf
->
p_module
=
module_Need
(
p_intf
,
"interface"
,
psz_module
,
false
);
...
@@ -264,7 +257,7 @@ static int AddIntfCallback( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -264,7 +257,7 @@ static int AddIntfCallback( vlc_object_t *p_this, char const *psz_cmd,
/* Try to create the interface */
/* Try to create the interface */
sprintf
(
psz_intf
,
"%s,none"
,
newval
.
psz_string
);
sprintf
(
psz_intf
,
"%s,none"
,
newval
.
psz_string
);
p_intf
=
intf_Create
(
p_this
->
p_libvlc
,
psz_intf
,
0
,
NULL
);
p_intf
=
intf_Create
(
p_this
->
p_libvlc
,
psz_intf
);
free
(
psz_intf
);
free
(
psz_intf
);
if
(
p_intf
==
NULL
)
if
(
p_intf
==
NULL
)
{
{
...
...
src/libvlc-common.c
View file @
26c146e8
...
@@ -1131,7 +1131,7 @@ int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc, char const *psz_module,
...
@@ -1131,7 +1131,7 @@ int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc, char const *psz_module,
}
}
/* Try to create the interface */
/* Try to create the interface */
p_intf
=
intf_Create
(
p_libvlc
,
psz_module
?
psz_module
:
"$intf"
,
0
,
NULL
);
p_intf
=
intf_Create
(
p_libvlc
,
psz_module
?
psz_module
:
"$intf"
);
if
(
p_intf
==
NULL
)
if
(
p_intf
==
NULL
)
{
{
msg_Err
(
p_libvlc
,
"interface
\"
%s
\"
initialization failed"
,
msg_Err
(
p_libvlc
,
"interface
\"
%s
\"
initialization failed"
,
...
...
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