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
ace6ff6e
Commit
ace6ff6e
authored
Aug 16, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
There is always a thread to join here. No need to check
parent
7ff7896f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
modules/audio_output/directx.c
modules/audio_output/directx.c
+7
-13
No files found.
modules/audio_output/directx.c
View file @
ace6ff6e
...
...
@@ -241,7 +241,7 @@ static int OpenAudio( vlc_object_t *p_this )
if
(
p_aout
->
output
.
p_sys
==
NULL
)
{
msg_Err
(
p_aout
,
"out of memory"
);
return
VLC_E
GENERIC
;
return
VLC_E
NOMEM
;
}
/* Initialize some variables */
...
...
@@ -373,7 +373,7 @@ static int OpenAudio( vlc_object_t *p_this )
msg_Err
(
p_aout
,
"cannot create DirectSoundThread"
);
CloseHandle
(
p_aout
->
output
.
p_sys
->
p_notif
->
event
);
vlc_object_destroy
(
p_aout
->
output
.
p_sys
->
p_notif
);
p_aout
->
output
.
p_sys
->
p_notif
=
0
;
p_aout
->
output
.
p_sys
->
p_notif
=
NULL
;
goto
error
;
}
...
...
@@ -587,15 +587,11 @@ static void CloseAudio( vlc_object_t *p_this )
if
(
p_sys
->
p_notif
)
{
vlc_object_detach
(
p_sys
->
p_notif
);
if
(
p_sys
->
p_notif
->
b_thread
)
{
vlc_object_kill
(
p_sys
->
p_notif
);
/* wake up the audio thread if needed */
if
(
!
p_sys
->
b_playing
)
SetEvent
(
p_sys
->
p_notif
->
event
);
vlc_object_kill
(
p_sys
->
p_notif
);
/* wake up the audio thread if needed */
if
(
!
p_sys
->
b_playing
)
SetEvent
(
p_sys
->
p_notif
->
event
);
vlc_thread_join
(
p_sys
->
p_notif
);
}
vlc_thread_join
(
p_sys
->
p_notif
);
vlc_object_destroy
(
p_sys
->
p_notif
);
}
...
...
@@ -608,9 +604,7 @@ static void CloseAudio( vlc_object_t *p_this )
/* free DSOUND.DLL */
if
(
p_sys
->
hdsound_dll
)
FreeLibrary
(
p_sys
->
hdsound_dll
);
if
(
p_aout
->
output
.
p_sys
->
p_device_guid
)
free
(
p_aout
->
output
.
p_sys
->
p_device_guid
);
free
(
p_aout
->
output
.
p_sys
->
p_device_guid
);
free
(
p_sys
);
}
...
...
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