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
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
Show 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 )
...
@@ -65,6 +65,7 @@ audio_output_t *aout_New( vlc_object_t * p_parent )
owner
->
volume
.
multiplier
=
1
.
0
;
owner
->
volume
.
multiplier
=
1
.
0
;
owner
->
volume
.
mixer
=
NULL
;
owner
->
volume
.
mixer
=
NULL
;
aout
->
pf_play
=
aout_DecDeleteBuffer
;
aout_VolumeNoneInit
(
aout
);
aout_VolumeNoneInit
(
aout
);
vlc_object_set_destructor
(
aout
,
aout_Destructor
);
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,
...
@@ -195,31 +195,31 @@ int aout_OutputNew( audio_output_t *p_aout,
return
0
;
return
0
;
}
}
/*****************************************************************************
/**
* aout_OutputDelete : delete the output
* Destroys the audio output plug-in instance.
*****************************************************************************
*/
* This function is entered with the mixer lock.
void
aout_OutputDelete
(
audio_output_t
*
aout
)
*****************************************************************************/
void
aout_OutputDelete
(
audio_output_t
*
p_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
)
if
(
owner
->
module
==
NULL
)
return
;
return
;
module_unneed
(
p_aout
,
owner
->
module
);
module_unneed
(
aout
,
owner
->
module
);
aout_VolumeNoneInit
(
p_aout
);
/* clear volume callback */
/* Clear callbacks */
aout
->
pf_play
=
aout_DecDeleteBuffer
;
/* gruik */
aout
->
pf_pause
=
NULL
;
aout
->
pf_flush
=
NULL
;
aout_VolumeNoneInit
(
aout
);
owner
->
module
=
NULL
;
owner
->
module
=
NULL
;
aout_FiltersDestroyPipeline
(
owner
->
filters
,
owner
->
nb_filters
);
aout_FiltersDestroyPipeline
(
owner
->
filters
,
owner
->
nb_filters
);
}
}
/*****************************************************************************
/**
* aout_OutputPlay : play a buffer
* Plays a decoded audio buffer.
*****************************************************************************
*/
* This function is entered with the mixer lock.
*****************************************************************************/
void
aout_OutputPlay
(
audio_output_t
*
aout
,
block_t
*
block
)
void
aout_OutputPlay
(
audio_output_t
*
aout
,
block_t
*
block
)
{
{
aout_owner_t
*
owner
=
aout_owner
(
aout
);
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