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
cc82ee52
Commit
cc82ee52
authored
Jul 25, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: run on first thread is not needed
parent
b4bf94e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/vlc_interface.h
include/vlc_interface.h
+1
-1
src/interface/interface.c
src/interface/interface.c
+4
-4
No files found.
include/vlc_interface.h
View file @
cc82ee52
...
...
@@ -53,7 +53,7 @@ typedef struct intf_thread_t
struct
intf_thread_t
*
p_next
;
/** LibVLC interfaces book keeping */
/* Thread properties and locks */
#if defined( __APPLE__ )
|| defined( WIN32 )
#if defined( __APPLE__ )
bool
b_should_run_on_first_thread
;
#endif
...
...
src/interface/interface.c
View file @
cc82ee52
...
...
@@ -53,7 +53,7 @@
* Local prototypes
*****************************************************************************/
static
void
*
RunInterface
(
vlc_object_t
*
p_this
);
#if defined( __APPLE__ )
|| defined( WIN32 )
#if defined( __APPLE__ )
static
void
*
MonitorLibVLCDeath
(
vlc_object_t
*
p_this
);
#endif
static
int
AddIntfCallback
(
vlc_object_t
*
,
char
const
*
,
...
...
@@ -108,7 +108,7 @@ int intf_Create( vlc_object_t *p_this, const char *psz_module )
/* Attach interface to LibVLC */
vlc_object_attach
(
p_intf
,
p_libvlc
);
#if defined( __APPLE__ )
|| defined( WIN32 )
#if defined( __APPLE__ )
p_intf
->
b_should_run_on_first_thread
=
false
;
#endif
...
...
@@ -129,7 +129,7 @@ int intf_Create( vlc_object_t *p_this, const char *psz_module )
}
vlc_mutex_lock
(
&
lock
);
#if defined( __APPLE__ )
|| defined( WIN32 )
#if defined( __APPLE__ )
/* Hack to get Mac OS X Cocoa runtime running
* (it needs access to the main thread) */
if
(
p_intf
->
b_should_run_on_first_thread
)
...
...
@@ -225,7 +225,7 @@ static void* RunInterface( vlc_object_t *p_this )
return
NULL
;
}
#if defined( __APPLE__ )
|| defined( WIN32 )
#if defined( __APPLE__ )
#include "control/libvlc_internal.h"
/* libvlc_InternalWait */
/**
* MonitorLibVLCDeath: Used when b_should_run_on_first_thread is set.
...
...
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