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
df0315ff
Commit
df0315ff
authored
Aug 16, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: fix crash if output restart fails
parent
f99bd91c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
src/audio_output/common.c
src/audio_output/common.c
+1
-0
src/audio_output/output.c
src/audio_output/output.c
+15
-15
No files found.
src/audio_output/common.c
View file @
df0315ff
...
...
@@ -65,6 +65,7 @@ audio_output_t *aout_New( vlc_object_t * p_parent )
owner
->
volume
.
multiplier
=
1
.
0
;
owner
->
volume
.
mixer
=
NULL
;
aout
->
pf_play
=
aout_DecDeleteBuffer
;
aout_VolumeNoneInit
(
aout
);
vlc_object_set_destructor
(
aout
,
aout_Destructor
);
...
...
src/audio_output/output.c
View file @
df0315ff
...
...
@@ -195,31 +195,31 @@ int aout_OutputNew( audio_output_t *p_aout,
return
0
;
}
/*****************************************************************************
* aout_OutputDelete : delete the output
*****************************************************************************
* This function is entered with the mixer lock.
*****************************************************************************/
void
aout_OutputDelete
(
audio_output_t
*
p_aout
)
/**
* Destroys the audio output plug-in instance.
*/
void
aout_OutputDelete
(
audio_output_t
*
aout
)
{
aout_owner_t
*
owner
=
aout_owner
(
p_
aout
);
aout_owner_t
*
owner
=
aout_owner
(
aout
);
aout_assert_locked
(
p_aout
);
aout_assert_locked
(
aout
);
if
(
owner
->
module
==
NULL
)
return
;
module_unneed
(
p_aout
,
owner
->
module
);
aout_VolumeNoneInit
(
p_aout
);
/* clear volume callback */
module_unneed
(
aout
,
owner
->
module
);
/* Clear callbacks */
aout
->
pf_play
=
aout_DecDeleteBuffer
;
/* gruik */
aout
->
pf_pause
=
NULL
;
aout
->
pf_flush
=
NULL
;
aout_VolumeNoneInit
(
aout
);
owner
->
module
=
NULL
;
aout_FiltersDestroyPipeline
(
owner
->
filters
,
owner
->
nb_filters
);
}
/*****************************************************************************
* aout_OutputPlay : play a buffer
*****************************************************************************
* This function is entered with the mixer lock.
*****************************************************************************/
/**
* Plays a decoded audio buffer.
*/
void
aout_OutputPlay
(
audio_output_t
*
aout
,
block_t
*
block
)
{
aout_owner_t
*
owner
=
aout_owner
(
aout
);
...
...
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