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
b1a8a5cc
Commit
b1a8a5cc
authored
Oct 26, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up coments.
parent
de3f8c02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
26 deletions
+23
-26
src/interface/interface.c
src/interface/interface.c
+23
-26
No files found.
src/interface/interface.c
View file @
b1a8a5cc
...
...
@@ -56,10 +56,9 @@ static int AddIntfCallback( vlc_object_t *, char const *,
vlc_value_t
,
vlc_value_t
,
void
*
);
/**
*
\brief
Destroy the interface after the main loop endeed.
* Destroy the interface after the main loop endeed.
*
* \param p_intf the interface thread
* \return nothing
* @param p_obj: the interface thread
*/
static
void
intf_Destroy
(
vlc_object_t
*
obj
)
{
...
...
@@ -73,18 +72,14 @@ static void intf_Destroy( vlc_object_t *obj )
vlc_mutex_destroy
(
&
p_intf
->
change_lock
);
}
/*****************************************************************************
* intf_Create: prepare interface before main loop
*****************************************************************************
* This function opens output devices and creates specific interfaces. It sends
* its own error messages.
*****************************************************************************/
/**
* Create the interface, and prepare it for main loop.
* Create the interface, and prepare it for main loop. It opens ouput device
* and creates specific interfaces. Sends its own error messages.
*
*
\
param p_this the calling vlc_object_t
*
\
param psz_module a preferred interface module
*
\
return a pointer to the created interface thread, NULL on error
*
@
param p_this the calling vlc_object_t
*
@
param psz_module a preferred interface module
*
@
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
)
{
...
...
@@ -125,16 +120,12 @@ intf_thread_t* __intf_Create( vlc_object_t *p_this, const char *psz_module )
return
p_intf
;
}
/*****************************************************************************
* intf_RunThread: launch the interface thread
*****************************************************************************
* This function either creates a new thread and runs the interface in it.
*****************************************************************************/
/**
* Starts and runs the interface thread.
*
*
\
param p_intf the interface thread
*
\
return VLC_SUCCESS on success, an error number else
*
@
param p_intf the interface thread
*
@
return VLC_SUCCESS on success, an error number else
*/
int
intf_RunThread
(
intf_thread_t
*
p_intf
)
{
...
...
@@ -173,12 +164,12 @@ int intf_RunThread( intf_thread_t *p_intf )
return
VLC_SUCCESS
;
}
/**
* Stops the interface thread
*
* This function asks the interface thread to stop
* \param p_intf the interface thread
* \return nothing
* @param p_intf the interface thread
*/
void
intf_StopThread
(
intf_thread_t
*
p_intf
)
{
...
...
@@ -187,11 +178,15 @@ void intf_StopThread( intf_thread_t *p_intf )
vlc_thread_join
(
p_intf
);
}
/* Following functions are local */
/**
***************************************************************************
/**
* RunInterface: setups necessary data and give control to the interface
*****************************************************************************/
*
* @param p_this: interface object
*/
static
void
*
RunInterface
(
vlc_object_t
*
p_this
)
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
...
...
@@ -231,9 +226,11 @@ static void* RunInterface( vlc_object_t *p_this )
}
#if defined( __APPLE__ ) || defined( WIN32 )
/**
***************************************************************************
/**
* MonitorLibVLCDeath: Used when b_should_run_on_first_thread is set.
*****************************************************************************/
*
* @param p_this: the interface object
*/
static
void
*
MonitorLibVLCDeath
(
vlc_object_t
*
p_this
)
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
...
...
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