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
70e32d82
Commit
70e32d82
authored
Aug 04, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: fix error handling when output creation fails
parent
3fe45607
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/audio_output/dec.c
src/audio_output/dec.c
+7
-7
No files found.
src/audio_output/dec.c
View file @
70e32d82
...
...
@@ -95,30 +95,30 @@ aout_input_t *aout_DecNew( audio_output_t *p_aout,
aout_owner_t
*
owner
=
aout_owner
(
p_aout
);
aout_lock
(
p_aout
);
assert
(
owner
->
input
==
NULL
);
owner
->
input
=
p_input
;
var_Destroy
(
p_aout
,
"audio-device"
);
var_Destroy
(
p_aout
,
"audio-channels"
);
/* Recreate the output using the new format. */
if
(
aout_OutputNew
(
p_aout
,
p_format
)
<
0
)
#warning Input without output and mixer = bad idea.
goto
out
;
goto
error
;
assert
(
owner
->
volume
.
mixer
==
NULL
);
owner
->
volume
.
mixer
=
aout_MixerNew
(
p_aout
,
owner
->
mixer_format
.
i_format
);
if
(
owner
->
volume
.
mixer
==
NULL
)
{
aout_OutputDelete
(
p_aout
);
#warning Memory leak.
p_input
=
NULL
;
goto
out
;
goto
error
;
}
owner
->
input
=
p_input
;
aout_InputNew
(
p_aout
,
p_input
,
p_request_vout
);
out:
aout_unlock
(
p_aout
);
return
p_input
;
error:
aout_unlock
(
p_aout
);
free
(
p_input
);
return
NULL
;
}
/*****************************************************************************
...
...
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