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
d3ed2c8a
Commit
d3ed2c8a
authored
Jul 19, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use block_Release instead of pf_release directly.
parent
96a6323f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
35 additions
and
29 deletions
+35
-29
modules/audio_filter/channel_mixer/headphone.c
modules/audio_filter/channel_mixer/headphone.c
+4
-3
modules/audio_filter/channel_mixer/mono.c
modules/audio_filter/channel_mixer/mono.c
+3
-3
modules/audio_filter/channel_mixer/simple.c
modules/audio_filter/channel_mixer/simple.c
+4
-3
modules/audio_filter/converter/a52tofloat32.c
modules/audio_filter/converter/a52tofloat32.c
+4
-3
modules/audio_filter/converter/dtstofloat32.c
modules/audio_filter/converter/dtstofloat32.c
+4
-3
modules/audio_filter/converter/mpgatofixed32.c
modules/audio_filter/converter/mpgatofixed32.c
+4
-3
modules/audio_filter/format.c
modules/audio_filter/format.c
+8
-8
modules/audio_filter/resampler/linear.c
modules/audio_filter/resampler/linear.c
+4
-3
No files found.
modules/audio_filter/channel_mixer/headphone.c
View file @
d3ed2c8a
...
...
@@ -669,7 +669,8 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
if
(
!
p_block
||
!
p_block
->
i_samples
)
{
if
(
p_block
)
p_block
->
pf_release
(
p_block
);
if
(
p_block
)
block_Release
(
p_block
);
return
NULL
;
}
...
...
@@ -681,7 +682,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
if
(
!
p_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
if
(
p_block
)
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
NULL
;
}
...
...
@@ -709,6 +710,6 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
p_out
->
i_buffer
=
out_buf
.
i_nb_bytes
;
p_out
->
i_samples
=
out_buf
.
i_nb_samples
;
if
(
p_block
)
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
p_out
;
}
modules/audio_filter/channel_mixer/mono.c
View file @
d3ed2c8a
...
...
@@ -471,7 +471,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
if
(
!
p_block
||
!
p_block
->
i_samples
)
{
if
(
p_block
)
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
NULL
;
}
...
...
@@ -482,7 +482,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
if
(
!
p_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
NULL
;
}
p_out
->
i_samples
=
(
p_block
->
i_samples
/
p_filter
->
p_sys
->
i_nb_channels
)
*
...
...
@@ -529,7 +529,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
p_out
->
i_buffer
=
out_buf
.
i_nb_bytes
;
p_out
->
i_samples
=
out_buf
.
i_nb_samples
;
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
p_out
;
}
...
...
modules/audio_filter/channel_mixer/simple.c
View file @
d3ed2c8a
...
...
@@ -233,7 +233,8 @@ static block_t *Filter( filter_t *p_filter, block_t *p_block )
if
(
!
p_block
||
!
p_block
->
i_samples
)
{
if
(
p_block
)
p_block
->
pf_release
(
p_block
);
if
(
p_block
)
block_Release
(
p_block
);
return
NULL
;
}
...
...
@@ -245,7 +246,7 @@ static block_t *Filter( filter_t *p_filter, block_t *p_block )
if
(
!
p_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
NULL
;
}
...
...
@@ -269,7 +270,7 @@ static block_t *Filter( filter_t *p_filter, block_t *p_block )
DoWork
(
(
aout_instance_t
*
)
p_filter
,
&
aout_filter
,
&
in_buf
,
&
out_buf
);
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
p_out
->
i_buffer
=
out_buf
.
i_nb_bytes
;
p_out
->
i_samples
=
out_buf
.
i_nb_samples
;
...
...
modules/audio_filter/converter/a52tofloat32.c
View file @
d3ed2c8a
...
...
@@ -473,7 +473,8 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
if
(
!
p_block
||
!
p_block
->
i_samples
)
{
if
(
p_block
)
p_block
->
pf_release
(
p_block
);
if
(
p_block
)
block_Release
(
p_block
);
return
NULL
;
}
...
...
@@ -485,7 +486,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
if
(
!
p_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
NULL
;
}
...
...
@@ -512,7 +513,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
p_out
->
i_buffer
=
out_buf
.
i_nb_bytes
;
p_out
->
i_samples
=
out_buf
.
i_nb_samples
;
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
p_out
;
}
modules/audio_filter/converter/dtstofloat32.c
View file @
d3ed2c8a
...
...
@@ -431,7 +431,8 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
if
(
!
p_block
||
!
p_block
->
i_samples
)
{
if
(
p_block
)
p_block
->
pf_release
(
p_block
);
if
(
p_block
)
block_Release
(
p_block
);
return
NULL
;
}
...
...
@@ -443,7 +444,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
if
(
!
p_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
NULL
;
}
...
...
@@ -470,7 +471,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
p_out
->
i_buffer
=
out_buf
.
i_nb_bytes
;
p_out
->
i_samples
=
out_buf
.
i_nb_samples
;
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
p_out
;
}
modules/audio_filter/converter/mpgatofixed32.c
View file @
d3ed2c8a
...
...
@@ -365,7 +365,8 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
if
(
!
p_block
||
!
p_block
->
i_samples
)
{
if
(
p_block
)
p_block
->
pf_release
(
p_block
);
if
(
p_block
)
block_Release
(
p_block
);
return
NULL
;
}
...
...
@@ -377,7 +378,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
if
(
!
p_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
NULL
;
}
...
...
@@ -402,7 +403,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
DoWork
(
(
aout_instance_t
*
)
p_filter
,
&
aout_filter
,
&
in_buf
,
&
out_buf
);
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
p_out
->
i_buffer
=
out_buf
.
i_nb_bytes
;
p_out
->
i_samples
=
out_buf
.
i_nb_samples
;
...
...
modules/audio_filter/format.c
View file @
d3ed2c8a
...
...
@@ -355,7 +355,7 @@ static block_t *S24toFloat32( filter_t *p_filter, block_t *p_block )
p_block_out
->
i_length
=
p_block
->
i_length
;
p_block_out
->
i_rate
=
p_block
->
i_rate
;
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
p_block_out
;
}
...
...
@@ -424,7 +424,7 @@ static block_t *S16toFloat32( filter_t *p_filter, block_t *p_block )
p_block_out
->
i_length
=
p_block
->
i_length
;
p_block_out
->
i_rate
=
p_block
->
i_rate
;
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
p_block_out
;
}
...
...
@@ -457,7 +457,7 @@ static block_t *U16toFloat32( filter_t *p_filter, block_t *p_block )
p_block_out
->
i_length
=
p_block
->
i_length
;
p_block_out
->
i_rate
=
p_block
->
i_rate
;
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
p_block_out
;
}
...
...
@@ -497,7 +497,7 @@ static block_t *S16toS24( filter_t *p_filter, block_t *p_block )
p_block_out
->
i_length
=
p_block
->
i_length
;
p_block_out
->
i_rate
=
p_block
->
i_rate
;
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
p_block_out
;
}
...
...
@@ -632,7 +632,7 @@ static block_t *S8toU16( filter_t *p_filter, block_t *p_block )
p_block_out
->
i_length
=
p_block
->
i_length
;
p_block_out
->
i_rate
=
p_block
->
i_rate
;
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
p_block_out
;
}
...
...
@@ -663,7 +663,7 @@ static block_t *U8toS16( filter_t *p_filter, block_t *p_block )
p_block_out
->
i_length
=
p_block
->
i_length
;
p_block_out
->
i_rate
=
p_block
->
i_rate
;
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
p_block_out
;
}
...
...
@@ -695,7 +695,7 @@ static block_t *S8toS16( filter_t *p_filter, block_t *p_block )
p_block_out
->
i_length
=
p_block
->
i_length
;
p_block_out
->
i_rate
=
p_block
->
i_rate
;
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
p_block_out
;
}
...
...
@@ -726,7 +726,7 @@ static block_t *U8toU16( filter_t *p_filter, block_t *p_block )
p_block_out
->
i_length
=
p_block
->
i_length
;
p_block_out
->
i_rate
=
p_block
->
i_rate
;
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
p_block_out
;
}
...
...
modules/audio_filter/resampler/linear.c
View file @
d3ed2c8a
...
...
@@ -319,7 +319,8 @@ static block_t *Resample( filter_t *p_filter, block_t *p_block )
if
(
!
p_block
||
!
p_block
->
i_samples
)
{
if
(
p_block
)
p_block
->
pf_release
(
p_block
);
if
(
p_block
)
block_Release
(
p_block
);
return
NULL
;
}
...
...
@@ -333,7 +334,7 @@ static block_t *Resample( filter_t *p_filter, block_t *p_block )
if
(
!
p_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
return
NULL
;
}
...
...
@@ -356,7 +357,7 @@ static block_t *Resample( filter_t *p_filter, block_t *p_block )
DoWork
(
(
aout_instance_t
*
)
p_filter
,
&
aout_filter
,
&
in_buf
,
&
out_buf
);
p_block
->
pf_r
elease
(
p_block
);
block_R
elease
(
p_block
);
p_out
->
i_buffer
=
out_buf
.
i_nb_bytes
;
p_out
->
i_samples
=
out_buf
.
i_nb_samples
;
...
...
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