[vlc-devel] [PATCH 2/4] aout: signal discontinuities to modules
Thomas Guillem
thomas at gllm.fr
Wed Jan 30 12:28:11 CET 2019
---
src/audio_output/dec.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index 104d5cca82..f3297fca3f 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -375,6 +375,10 @@ int aout_DecPlay(audio_output_t *aout, block_t *block)
/* Drift correction */
aout_DecSynchronize(aout, block->i_pts);
+ /* Pass the discontinuity information to the aout module */
+ if (owner->sync.discontinuity)
+ block->i_flags |= BLOCK_FLAG_DISCONTINUITY;
+
/* Output */
owner->sync.end = block->i_pts + block->i_length + 1;
owner->sync.discontinuity = false;
--
2.20.1
More information about the vlc-devel
mailing list