Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
3e649d20
Commit
3e649d20
authored
Jun 03, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless timer parameter
parent
e2c1b169
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
16 deletions
+10
-16
include/vlc_threads.h
include/vlc_threads.h
+2
-2
modules/access/dvdnav.c
modules/access/dvdnav.c
+2
-4
modules/misc/screensaver.c
modules/misc/screensaver.c
+2
-4
src/misc/pthread.c
src/misc/pthread.c
+2
-3
src/misc/w32thread.c
src/misc/w32thread.c
+2
-3
No files found.
include/vlc_threads.h
View file @
3e649d20
...
...
@@ -112,7 +112,7 @@ typedef struct vlc_timer_t vlc_timer_t;
struct
vlc_timer_t
{
timer_t
handle
;
void
(
*
func
)
(
v
lc_timer_t
*
,
v
oid
*
);
void
(
*
func
)
(
void
*
);
void
*
data
;
};
...
...
@@ -181,7 +181,7 @@ VLC_EXPORT( void, vlc_cancel, (vlc_thread_t) );
VLC_EXPORT
(
void
,
vlc_join
,
(
vlc_thread_t
,
void
**
)
);
VLC_EXPORT
(
void
,
vlc_control_cancel
,
(
int
cmd
,
...));
VLC_EXPORT
(
int
,
vlc_timer_create
,
(
vlc_timer_t
*
,
void
(
*
)
(
v
lc_timer_t
*
,
v
oid
*
),
void
*
)
LIBVLC_USED
);
VLC_EXPORT
(
int
,
vlc_timer_create
,
(
vlc_timer_t
*
,
void
(
*
)
(
void
*
),
void
*
)
LIBVLC_USED
);
VLC_EXPORT
(
void
,
vlc_timer_destroy
,
(
vlc_timer_t
*
)
);
VLC_EXPORT
(
void
,
vlc_timer_schedule
,
(
vlc_timer_t
*
,
bool
,
mtime_t
,
mtime_t
)
);
VLC_EXPORT
(
unsigned
,
vlc_timer_getoverrun
,
(
const
vlc_timer_t
*
)
LIBVLC_USED
);
...
...
modules/access/dvdnav.c
View file @
3e649d20
...
...
@@ -163,7 +163,7 @@ static char *DemuxGetLanguageCode( demux_t *p_demux, const char *psz_var );
static
int
ControlInternal
(
demux_t
*
,
int
,
...
);
static
void
StillTimer
(
v
lc_timer_t
*
,
v
oid
*
);
static
void
StillTimer
(
void
*
);
static
int
EventKey
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
...
...
@@ -1300,7 +1300,7 @@ static void ESNew( demux_t *p_demux, int i_id )
/*****************************************************************************
* Still image end
*****************************************************************************/
static
void
StillTimer
(
v
lc_timer_t
*
id
,
v
oid
*
p_data
)
static
void
StillTimer
(
void
*
p_data
)
{
demux_sys_t
*
p_sys
=
p_data
;
...
...
@@ -1309,8 +1309,6 @@ static void StillTimer( vlc_timer_t *id, void *p_data )
p_sys
->
still
.
b_enabled
=
false
;
dvdnav_still_skip
(
p_sys
->
dvdnav
);
vlc_mutex_unlock
(
&
p_sys
->
still
.
lock
);
(
void
)
id
;
}
static
int
EventMouse
(
vlc_object_t
*
p_vout
,
char
const
*
psz_var
,
...
...
modules/misc/screensaver.c
View file @
3e649d20
...
...
@@ -61,7 +61,7 @@
static
int
Activate
(
vlc_object_t
*
);
static
void
Deactivate
(
vlc_object_t
*
);
static
void
Timer
(
v
lc_timer_t
*
,
v
oid
*
);
static
void
Timer
(
void
*
);
#ifdef HAVE_DBUS
...
...
@@ -176,7 +176,7 @@ static void Execute( intf_thread_t *p_this, const char *const *ppsz_args )
* This part of the module is in a separate thread so that we do not have
* too much system() overhead.
*****************************************************************************/
static
void
Timer
(
v
lc_timer_t
*
id
,
v
oid
*
data
)
static
void
Timer
(
void
*
data
)
{
intf_thread_t
*
p_intf
=
data
;
playlist_t
*
p_playlist
=
pl_Hold
(
p_intf
);
...
...
@@ -211,8 +211,6 @@ static void Timer( vlc_timer_t *id, void *data )
Execute
(
p_intf
,
ppsz_gsargs
);
#endif
/* FIXME: add support for other screensavers */
(
void
)
id
;
}
#ifdef HAVE_DBUS
...
...
src/misc/pthread.c
View file @
3e649d20
...
...
@@ -588,7 +588,7 @@ void vlc_control_cancel (int cmd, ...)
static
void
vlc_timer_do
(
union
sigval
val
)
{
vlc_timer_t
*
id
=
val
.
sival_ptr
;
id
->
func
(
id
,
id
->
data
);
id
->
func
(
id
->
data
);
}
/**
...
...
@@ -601,8 +601,7 @@ static void vlc_timer_do (union sigval val)
* @param data parameter for the timer function
* @return 0 on success, a system error code otherwise.
*/
int
vlc_timer_create
(
vlc_timer_t
*
id
,
void
(
*
func
)
(
vlc_timer_t
*
,
void
*
),
void
*
data
)
int
vlc_timer_create
(
vlc_timer_t
*
id
,
void
(
*
func
)
(
void
*
),
void
*
data
)
{
struct
sigevent
ev
;
...
...
src/misc/w32thread.c
View file @
3e649d20
...
...
@@ -521,15 +521,14 @@ static void CALLBACK vlc_timer_do (void *val, BOOLEAN timeout)
if
(
TryEnterCriticalSection
(
&
id
->
serializer
))
{
id
->
overrun
=
InterlockedExchange
(
&
id
->
counter
,
0
);
id
->
func
(
id
,
id
->
data
);
id
->
func
(
id
->
data
);
LeaveCriticalSection
(
&
id
->
serializer
);
}
else
/* Overrun */
InterlockedIncrement
(
&
id
->
counter
);
}
int
vlc_timer_create
(
vlc_timer_t
*
id
,
void
(
*
func
)
(
vlc_timer_t
*
,
void
*
),
void
*
data
)
int
vlc_timer_create
(
vlc_timer_t
*
id
,
void
(
*
func
)
(
void
*
),
void
*
data
)
{
id
->
func
=
func
;
id
->
data
=
data
;
...
...
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