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
10ac32d6
Commit
10ac32d6
authored
Sep 07, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix use of vlc_object_wait()
parent
82580b6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/misc/win32_specific.c
src/misc/win32_specific.c
+6
-6
No files found.
src/misc/win32_specific.c
View file @
10ac32d6
...
...
@@ -124,6 +124,7 @@ static unsigned __stdcall IPCHelperThread( void * );
LRESULT
CALLBACK
WMCOPYWNDPROC
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
static
vlc_object_t
*
p_helper
=
NULL
;
static
unsigned
long
hIPCHelper
;
static
HANDLE
hIPCHelperReady
;
typedef
struct
{
...
...
@@ -177,16 +178,14 @@ void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv
p_helper
=
vlc_custom_create
(
p_this
,
sizeof
(
vlc_object_t
),
VLC_OBJECT_GENERIC
,
typename
);
vlc_object_lock
(
p_helper
);
/* Run the helper thread */
hIPCHelperReady
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
hIPCHelper
=
_beginthreadex
(
NULL
,
0
,
IPCHelperThread
,
p_helper
,
0
,
NULL
);
if
(
hIPCHelper
)
vlc_object_wait
(
p_helper
);
vlc_object_unlock
(
p_helper
);
if
(
!
hIPCHelper
)
WaitForSingleObject
(
hIPCHelperReady
,
INFINITE
);
else
{
msg_Err
(
p_this
,
"one instance mode DISABLED "
"(IPC helper thread couldn't be created)"
);
...
...
@@ -194,6 +193,7 @@ void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv
p_helper
=
NULL
;
}
vlc_object_attach
(
p_helper
,
p_this
);
CloseHandle
(
hIPCHelperReady
);
/* Initialization done.
* Release the mutex to unblock other instances */
...
...
@@ -292,7 +292,7 @@ static unsigned __stdcall IPCHelperThread( void *data )
SetWindowLongPtr
(
ipcwindow
,
GWLP_USERDATA
,
(
LONG_PTR
)
p_this
);
/* Signal the creation of the thread and events queue */
vlc_object_signal
(
p_this
);
SetEvent
(
hIPCHelperReady
);
while
(
GetMessage
(
&
message
,
NULL
,
0
,
0
)
)
{
...
...
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