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
0f7394a4
Commit
0f7394a4
authored
Aug 07, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix threaded function declaration.
parent
8e8f3ca3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
13 deletions
+16
-13
modules/video_output/msw/events.c
modules/video_output/msw/events.c
+3
-1
modules/video_output/msw/vout.h
modules/video_output/msw/vout.h
+1
-1
modules/video_output/qte/qte.cpp
modules/video_output/qte/qte.cpp
+4
-2
modules/visualization/galaktos/plugin.c
modules/visualization/galaktos/plugin.c
+5
-7
modules/visualization/goom.c
modules/visualization/goom.c
+3
-2
No files found.
modules/video_output/msw/events.c
View file @
0f7394a4
...
@@ -92,8 +92,9 @@ static int DirectXConvertKey( int i_key );
...
@@ -92,8 +92,9 @@ static int DirectXConvertKey( int i_key );
* The main goal of this thread is to isolate the Win32 PeekMessage function
* The main goal of this thread is to isolate the Win32 PeekMessage function
* because this one can block for a long time.
* because this one can block for a long time.
*****************************************************************************/
*****************************************************************************/
void
EventThread
(
event_thread_t
*
p_event
)
void
*
EventThread
(
vlc_object_t
*
p_this
)
{
{
event_thread_t
*
p_event
=
(
event_thread_t
*
)
p_this
;
MSG
msg
;
MSG
msg
;
POINT
old_mouse_pos
=
{
0
,
0
},
mouse_pos
;
POINT
old_mouse_pos
=
{
0
,
0
},
mouse_pos
;
vlc_value_t
val
;
vlc_value_t
val
;
...
@@ -375,6 +376,7 @@ void EventThread( event_thread_t *p_event )
...
@@ -375,6 +376,7 @@ void EventThread( event_thread_t *p_event )
p_event
->
p_vout
->
p_sys
->
i_changes
=
0
;
p_event
->
p_vout
->
p_sys
->
i_changes
=
0
;
DirectXCloseWindow
(
p_event
->
p_vout
);
DirectXCloseWindow
(
p_event
->
p_vout
);
return
NULL
;
}
}
...
...
modules/video_output/msw/vout.h
View file @
0f7394a4
...
@@ -194,7 +194,7 @@ int DirectDrawUpdateOverlay( vout_thread_t *p_vout );
...
@@ -194,7 +194,7 @@ int DirectDrawUpdateOverlay( vout_thread_t *p_vout );
/*****************************************************************************
/*****************************************************************************
* Prototypes from events.c
* Prototypes from events.c
*****************************************************************************/
*****************************************************************************/
void
EventThread
(
event_thread_t
*
p_event
);
void
*
EventThread
(
vlc_object_t
*
p_this
);
void
UpdateRects
(
vout_thread_t
*
p_vout
,
bool
b_force
);
void
UpdateRects
(
vout_thread_t
*
p_vout
,
bool
b_force
);
void
Win32ToggleFullscreen
(
vout_thread_t
*
p_vout
);
void
Win32ToggleFullscreen
(
vout_thread_t
*
p_vout
);
...
...
modules/video_output/qte/qte.cpp
View file @
0f7394a4
...
@@ -103,7 +103,7 @@ static void FreePicture ( vout_thread_t *, picture_t * );
...
@@ -103,7 +103,7 @@ static void FreePicture ( vout_thread_t *, picture_t * );
static
void
ToggleFullScreen
(
vout_thread_t
*
);
static
void
ToggleFullScreen
(
vout_thread_t
*
);
static
void
RunQtThread
(
event_thread_t
*
p_event
);
static
void
*
RunQtThread
(
vlc_object_t
*
p_this
);
}
/* extern "C" */
}
/* extern "C" */
/*****************************************************************************
/*****************************************************************************
...
@@ -588,8 +588,9 @@ static void CloseDisplay( vout_thread_t *p_vout )
...
@@ -588,8 +588,9 @@ static void CloseDisplay( vout_thread_t *p_vout )
/*****************************************************************************
/*****************************************************************************
* main loop of qtapplication
* main loop of qtapplication
*****************************************************************************/
*****************************************************************************/
static
void
RunQtThread
(
event_thread_t
*
p_event
)
static
void
*
RunQtThread
(
vlc_object_t
*
p_this
)
{
{
event_thread_t
*
p_event
=
(
event_thread_t
*
)
p_this
;
msg_Dbg
(
p_event
->
p_vout
,
"RunQtThread starting"
);
msg_Dbg
(
p_event
->
p_vout
,
"RunQtThread starting"
);
#ifdef NEED_QTE_MAIN
#ifdef NEED_QTE_MAIN
...
@@ -668,5 +669,6 @@ static void RunQtThread(event_thread_t *p_event)
...
@@ -668,5 +669,6 @@ static void RunQtThread(event_thread_t *p_event)
#endif
#endif
msg_Dbg
(
p_event
->
p_vout
,
"RunQtThread terminating"
);
msg_Dbg
(
p_event
->
p_vout
,
"RunQtThread terminating"
);
return
NULL
;
}
}
modules/visualization/galaktos/plugin.c
View file @
0f7394a4
...
@@ -63,7 +63,7 @@ typedef struct aout_filter_sys_t
...
@@ -63,7 +63,7 @@ typedef struct aout_filter_sys_t
static
void
DoWork
(
aout_instance_t
*
,
aout_filter_t
*
,
aout_buffer_t
*
,
static
void
DoWork
(
aout_instance_t
*
,
aout_filter_t
*
,
aout_buffer_t
*
,
aout_buffer_t
*
);
aout_buffer_t
*
);
static
void
Thread
(
vlc_object_t
*
);
static
void
*
Thread
(
vlc_object_t
*
);
static
char
*
TitleGet
(
vlc_object_t
*
);
static
char
*
TitleGet
(
vlc_object_t
*
);
...
@@ -188,7 +188,7 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
...
@@ -188,7 +188,7 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
/*****************************************************************************
/*****************************************************************************
* Thread:
* Thread:
*****************************************************************************/
*****************************************************************************/
static
void
Thread
(
vlc_object_t
*
p_this
)
static
void
*
Thread
(
vlc_object_t
*
p_this
)
{
{
galaktos_thread_t
*
p_thread
=
(
galaktos_thread_t
*
)
p_this
;
galaktos_thread_t
*
p_thread
=
(
galaktos_thread_t
*
)
p_this
;
...
@@ -202,10 +202,7 @@ static void Thread( vlc_object_t *p_this )
...
@@ -202,10 +202,7 @@ static void Thread( vlc_object_t *p_this )
p_thread
->
p_opengl
=
p_thread
->
p_opengl
=
(
vout_thread_t
*
)
vlc_object_create
(
p_this
,
VLC_OBJECT_OPENGL
);
(
vout_thread_t
*
)
vlc_object_create
(
p_this
,
VLC_OBJECT_OPENGL
);
if
(
p_thread
->
p_opengl
==
NULL
)
if
(
p_thread
->
p_opengl
==
NULL
)
{
return
NULL
;
msg_Err
(
p_thread
,
"out of memory"
);
return
;
}
vlc_object_attach
(
p_thread
->
p_opengl
,
p_this
);
vlc_object_attach
(
p_thread
->
p_opengl
,
p_this
);
/* Initialize vout parameters */
/* Initialize vout parameters */
...
@@ -231,7 +228,7 @@ static void Thread( vlc_object_t *p_this )
...
@@ -231,7 +228,7 @@ static void Thread( vlc_object_t *p_this )
msg_Err
(
p_thread
,
"unable to initialize OpenGL"
);
msg_Err
(
p_thread
,
"unable to initialize OpenGL"
);
vlc_object_detach
(
p_thread
->
p_opengl
);
vlc_object_detach
(
p_thread
->
p_opengl
);
vlc_object_release
(
p_thread
->
p_opengl
);
vlc_object_release
(
p_thread
->
p_opengl
);
return
;
return
NULL
;
}
}
p_thread
->
p_opengl
->
pf_init
(
p_thread
->
p_opengl
);
p_thread
->
p_opengl
->
pf_init
(
p_thread
->
p_opengl
);
...
@@ -269,6 +266,7 @@ static void Thread( vlc_object_t *p_this )
...
@@ -269,6 +266,7 @@ static void Thread( vlc_object_t *p_this )
module_Unneed
(
p_thread
->
p_opengl
,
p_thread
->
p_module
);
module_Unneed
(
p_thread
->
p_opengl
,
p_thread
->
p_module
);
vlc_object_detach
(
p_thread
->
p_opengl
);
vlc_object_detach
(
p_thread
->
p_opengl
);
vlc_object_release
(
p_thread
->
p_opengl
);
vlc_object_release
(
p_thread
->
p_opengl
);
return
NULL
;
}
}
/*****************************************************************************
/*****************************************************************************
...
...
modules/visualization/goom.c
View file @
0f7394a4
...
@@ -121,7 +121,7 @@ typedef struct aout_filter_sys_t
...
@@ -121,7 +121,7 @@ typedef struct aout_filter_sys_t
static
void
DoWork
(
aout_instance_t
*
,
aout_filter_t
*
,
aout_buffer_t
*
,
static
void
DoWork
(
aout_instance_t
*
,
aout_filter_t
*
,
aout_buffer_t
*
,
aout_buffer_t
*
);
aout_buffer_t
*
);
static
void
Thread
(
vlc_object_t
*
);
static
void
*
Thread
(
vlc_object_t
*
);
static
char
*
TitleGet
(
vlc_object_t
*
);
static
char
*
TitleGet
(
vlc_object_t
*
);
...
@@ -317,7 +317,7 @@ static int FillBuffer( int16_t *p_data, int *pi_data,
...
@@ -317,7 +317,7 @@ static int FillBuffer( int16_t *p_data, int *pi_data,
/*****************************************************************************
/*****************************************************************************
* Thread:
* Thread:
*****************************************************************************/
*****************************************************************************/
static
void
Thread
(
vlc_object_t
*
p_this
)
static
void
*
Thread
(
vlc_object_t
*
p_this
)
{
{
goom_thread_t
*
p_thread
=
(
goom_thread_t
*
)
p_this
;
goom_thread_t
*
p_thread
=
(
goom_thread_t
*
)
p_this
;
vlc_value_t
width
,
height
,
speed
;
vlc_value_t
width
,
height
,
speed
;
...
@@ -375,6 +375,7 @@ static void Thread( vlc_object_t *p_this )
...
@@ -375,6 +375,7 @@ static void Thread( vlc_object_t *p_this )
}
}
goom_close
(
p_plugin_info
);
goom_close
(
p_plugin_info
);
return
NULL
;
}
}
/*****************************************************************************
/*****************************************************************************
...
...
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