Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
2667b2ae
Commit
2667b2ae
authored
May 04, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BeOS app thread: only used in one file
No need to clutter the root object with stuff that can be static.
parent
63b51e51
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
src/libvlc.h
src/libvlc.h
+0
-1
src/misc/beos_specific.cpp
src/misc/beos_specific.cpp
+6
-4
No files found.
src/libvlc.h
View file @
2667b2ae
...
...
@@ -121,7 +121,6 @@ struct libvlc_global_data_t
/* Arch-specific variables */
#if defined( SYS_BEOS )
vlc_object_t
*
p_appthread
;
char
*
psz_vlcpath
;
#elif defined( __APPLE__ )
char
*
psz_vlcpath
;
...
...
src/misc/beos_specific.cpp
View file @
2667b2ae
...
...
@@ -71,6 +71,8 @@ private:
#include "../../modules/gui/beos/MsgVals.h"
#define REALLY_QUIT 'requ'
static
vlc_object_t
*
p_appthread
;
extern
"C"
{
...
...
@@ -84,11 +86,11 @@ static void AppThread( vlc_object_t *p_appthread );
*****************************************************************************/
void
system_Init
(
libvlc_int_t
*
p_this
,
int
*
pi_argc
,
const
char
*
ppsz_argv
[]
)
{
vlc_global
()
->
p_appthread
=
p_appthread
=
(
vlc_object_t
*
)
vlc_object_create
(
p_this
,
sizeof
(
vlc_object_t
)
);
/* Create the BApplication thread and wait for initialization */
vlc_thread_create
(
vlc_global
()
->
p_appthread
,
"app thread"
,
AppThread
,
vlc_thread_create
(
p_appthread
,
"app thread"
,
AppThread
,
VLC_THREAD_PRIORITY_LOW
,
true
);
}
...
...
@@ -107,8 +109,8 @@ void system_End( libvlc_int_t *p_this )
/* Tell the BApplication to die */
be_app
->
PostMessage
(
REALLY_QUIT
);
vlc_thread_join
(
vlc_global
()
->
p_appthread
);
vlc_object_release
(
vlc_global
()
->
p_appthread
);
vlc_thread_join
(
p_appthread
);
vlc_object_release
(
p_appthread
);
free
(
vlc_global
()
->
psz_vlcpath
);
}
...
...
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