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
a96ac936
Commit
a96ac936
authored
Jul 10, 2014
by
Rémi Denis-Courmont
Committed by
Jean-Baptiste Kempf
Jul 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FluidSynth: handle discontinuities
parent
87fe87e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
modules/codec/fluidsynth.c
modules/codec/fluidsynth.c
+10
-0
No files found.
modules/codec/fluidsynth.c
View file @
a96ac936
...
...
@@ -206,6 +206,16 @@ static block_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block)
return
NULL
;
*
pp_block
=
NULL
;
if
(
p_block
->
i_flags
&
(
BLOCK_FLAG_DISCONTINUITY
|
BLOCK_FLAG_CORRUPTED
))
{
date_Set
(
&
p_sys
->
end_date
,
0
);
//fluid_synth_system_reset (p_sys->synth);
fluid_synth_program_reset
(
p_sys
->
synth
);
for
(
unsigned
channel
=
0
;
channel
<
16
;
channel
++
)
for
(
unsigned
note
=
0
;
note
<
128
;
note
++
)
fluid_synth_noteoff
(
p_sys
->
synth
,
channel
,
note
);
}
if
(
p_block
->
i_pts
>
VLC_TS_INVALID
&&
!
date_Get
(
&
p_sys
->
end_date
))
date_Set
(
&
p_sys
->
end_date
,
p_block
->
i_pts
);
else
...
...
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