Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
8c4fff2f
Commit
8c4fff2f
authored
Dec 03, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder: remove legacy flush call
parent
c94f68fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
src/input/decoder.c
src/input/decoder.c
+0
-24
No files found.
src/input/decoder.c
View file @
8c4fff2f
...
...
@@ -210,19 +210,6 @@ static void DecoderUpdateFormatLocked( decoder_t *p_dec )
p_owner
->
b_fmt_description
=
true
;
}
static
block_t
*
DecoderBlockFlushNew
()
{
block_t
*
p_null
=
block_Alloc
(
128
);
if
(
!
p_null
)
return
NULL
;
p_null
->
i_flags
|=
BLOCK_FLAG_DISCONTINUITY
|
BLOCK_FLAG_CORRUPTED
;
memset
(
p_null
->
p_buffer
,
0
,
p_null
->
i_buffer
);
return
p_null
;
}
/*****************************************************************************
* Buffers allocation callbacks for the decoders
*****************************************************************************/
...
...
@@ -1280,17 +1267,6 @@ static void DecoderProcessFlush( decoder_t *p_dec )
if
(
p_dec
->
pf_flush
!=
NULL
)
p_dec
->
pf_flush
(
p_dec
);
else
{
/* legacy call, pass a CORRUPTED + DISCONTINUITY block */
block_t
*
p_flush
=
DecoderBlockFlushNew
();
if
(
unlikely
(
p_flush
==
NULL
)
)
{
msg_Err
(
p_dec
,
"cannot flush"
);
return
;
}
DecoderProcess
(
p_dec
,
p_flush
);
}
if
(
p_dec
->
fmt_out
.
i_cat
==
AUDIO_ES
)
{
...
...
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