Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
438
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
d16eba83
Commit
d16eba83
authored
4 months ago
by
Thomas Guillem
Committed by
Steve Lhomme
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
aout: trace discontinuity handling
parent
20a3c8ed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6190
aout: trace discontinuity handling
Pipeline
#525301
passed with stage
in 13 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/audio_output/dec.c
+19
-0
19 additions, 0 deletions
src/audio_output/dec.c
with
19 additions
and
0 deletions
src/audio_output/dec.c
+
19
−
0
View file @
d16eba83
...
...
@@ -183,6 +183,7 @@ static bool stream_IsDrained(vlc_aout_stream *stream)
static
int
stream_StartDiscontinuity
(
vlc_aout_stream
*
stream
,
block_t
*
block
)
{
audio_output_t
*
aout
=
aout_stream_aout
(
stream
);
struct
vlc_tracer
*
tracer
=
aout_stream_tracer
(
stream
);
assert
(
!
stream
->
discontinuity
.
draining
);
/* Changing timings of the stream module while playing is an intricate
...
...
@@ -197,6 +198,10 @@ static int stream_StartDiscontinuity(vlc_aout_stream *stream, block_t *block)
* - Play back all blocks that were saved
*/
if
(
tracer
!=
NULL
)
vlc_tracer_TraceEvent
(
tracer
,
"RENDER"
,
stream
->
str_id
,
"discontinuity_start"
);
msg_Dbg
(
aout
,
"discontinuity: at %"
PRId64
" us, draining output"
,
block
->
i_pts
);
vlc_aout_stream_Drain
(
stream
);
...
...
@@ -220,6 +225,7 @@ static void stream_ResetDiscontinuity(vlc_aout_stream *stream)
static
int
stream_HandleDiscontinuity
(
vlc_aout_stream
*
stream
,
block_t
*
block
)
{
audio_output_t
*
aout
=
aout_stream_aout
(
stream
);
struct
vlc_tracer
*
tracer
=
aout_stream_tracer
(
stream
);
block_ChainLastAppend
(
&
stream
->
discontinuity
.
fifo_last
,
block
);
...
...
@@ -234,6 +240,10 @@ static int stream_HandleDiscontinuity(vlc_aout_stream *stream, block_t *block)
&
length
);
block
=
stream
->
discontinuity
.
fifo_first
;
if
(
tracer
!=
NULL
)
vlc_tracer_TraceEvent
(
tracer
,
"RENDER"
,
stream
->
str_id
,
"discontinuity_flush"
);
msg_Dbg
(
aout
,
"discontinuity: flushing output"
);
/* Reset the discontinuity state, and flush */
...
...
@@ -243,6 +253,10 @@ static int stream_HandleDiscontinuity(vlc_aout_stream *stream, block_t *block)
msg_Dbg
(
aout
,
"discontinuity: playing back %d blocks for a total length of "
"%"
PRId64
" us"
,
count
,
length
);
if
(
tracer
!=
NULL
)
vlc_tracer_TraceEvent
(
tracer
,
"RENDER"
,
stream
->
str_id
,
"discontinuity_play"
);
/* Play back all blocks past the discontinuity */
for
(
block_t
*
next
;
block
!=
NULL
;
block
=
next
)
{
...
...
@@ -251,6 +265,11 @@ static int stream_HandleDiscontinuity(vlc_aout_stream *stream, block_t *block)
vlc_aout_stream_Play
(
stream
,
block
);
}
if
(
tracer
!=
NULL
)
vlc_tracer_TraceEvent
(
tracer
,
"RENDER"
,
stream
->
str_id
,
"discontinuity_end"
);
return
AOUT_DEC_SUCCESS
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment