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
2c32483b
Commit
2c32483b
authored
Aug 05, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix malloc error handling
(bug reported by David Thiel)
parent
c296e05b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
src/audio_output/dec.c
src/audio_output/dec.c
+7
-11
No files found.
src/audio_output/dec.c
View file @
2c32483b
...
@@ -280,7 +280,7 @@ aout_buffer_t * aout_DecNewBuffer( aout_instance_t * p_aout,
...
@@ -280,7 +280,7 @@ aout_buffer_t * aout_DecNewBuffer( aout_instance_t * p_aout,
/* This necessarily allocates in the heap. */
/* This necessarily allocates in the heap. */
aout_BufferAlloc
(
&
p_input
->
input_alloc
,
duration
,
NULL
,
p_buffer
);
aout_BufferAlloc
(
&
p_input
->
input_alloc
,
duration
,
NULL
,
p_buffer
);
p_buffer
->
i_nb_samples
=
i_nb_samples
;
if
(
p_buffer
!=
NULL
)
p_buffer
->
i_nb_bytes
=
i_nb_samples
*
p_input
->
input
.
i_bytes_per_frame
p_buffer
->
i_nb_bytes
=
i_nb_samples
*
p_input
->
input
.
i_bytes_per_frame
/
p_input
->
input
.
i_frame_length
;
/
p_input
->
input
.
i_frame_length
;
...
@@ -289,15 +289,11 @@ aout_buffer_t * aout_DecNewBuffer( aout_instance_t * p_aout,
...
@@ -289,15 +289,11 @@ aout_buffer_t * aout_DecNewBuffer( aout_instance_t * p_aout,
vlc_mutex_unlock
(
&
p_input
->
lock
);
vlc_mutex_unlock
(
&
p_input
->
lock
);
if
(
p_buffer
==
NULL
)
if
(
p_buffer
==
NULL
)
{
return
NULL
;
msg_Err
(
p_aout
,
"NULL buffer !"
);
}
else
{
p_buffer
->
start_date
=
p_buffer
->
end_date
=
0
;
}
p_buffer
->
i_nb_samples
=
i_nb_samples
;
p_buffer
->
start_date
=
p_buffer
->
end_date
=
0
;
return
p_buffer
;
return
p_buffer
;
}
}
...
...
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