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
04685d70
Commit
04685d70
authored
Sep 22, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove aout_buffer_t.b_alloc (it's always true)
When allocation is false, aout_BufferFree is simply not called.
parent
3969c2f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
include/vlc_aout.h
include/vlc_aout.h
+1
-3
src/audio_output/common.c
src/audio_output/common.c
+0
-1
No files found.
include/vlc_aout.h
View file @
04685d70
...
...
@@ -133,7 +133,6 @@ struct aout_buffer_t
* is the number of significative bytes in it. */
size_t
i_size
,
i_nb_bytes
;
unsigned
int
i_nb_samples
;
bool
b_alloc
;
bool
b_discontinuity
;
/* Set on discontinuity (for non pcm stream) */
mtime_t
start_date
,
end_date
;
...
...
@@ -143,8 +142,7 @@ struct aout_buffer_t
static
inline
void
aout_BufferFree
(
aout_buffer_t
*
buffer
)
{
if
(
buffer
&&
buffer
->
b_alloc
)
free
(
buffer
);
free
(
buffer
);
}
/* Size of a frame for S/PDIF output. */
...
...
src/audio_output/common.c
View file @
04685d70
...
...
@@ -717,7 +717,6 @@ aout_buffer_t *aout_BufferAlloc(aout_alloc_t *allocation, mtime_t microseconds,
if
(
!
buffer
)
return
NULL
;
buffer
->
b_alloc
=
true
;
buffer
->
i_size
=
i_alloc_size
;
buffer
->
p_buffer
=
(
uint8_t
*
)
buffer
+
sizeof
(
aout_buffer_t
);
buffer
->
b_discontinuity
=
false
;
...
...
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