[vlc-devel] [PATCH 04/10] aout: dts = pts for aout modules
Thomas Guillem
thomas at gllm.fr
Wed Mar 20 16:37:17 CET 2019
On Wed, Mar 20, 2019, at 14:11, Rémi Denis-Courmont wrote:
> Yes, but what's the point? The fact that there's a DTS is just an unfortunate wart of the merge of aout_buffer_t and block_t. Audio outputs should never use the DTS, AFAIR.
OK.
>
> Le 20 mars 2019 00:45:19 GMT+08:00, Thomas Guillem <thomas at gllm.fr> a écrit :
>> Like it's already done for aout_DecSilence(). 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 ae686f2dc2..cae2068805 100644
>> --- a/src/audio_output/dec.c
>> +++ b/src/audio_output/dec.c
>> @@ -463,6 +463,7 @@ int aout_DecPlay(audio_output_t *aout, block_t *block)
>> owner->sync.rate);
>> /* Output */
>> owner->sync.discontinuity = false;
>> + block->i_dts = block->i_pts;
>> aout->play(aout, block, play_date);
>>
>> atomic_fetch_add_explicit(&owner->buffers_played, 1, memory_order_relaxed);
>> @@ -552,7 +553,10 @@ void aout_DecDrain(audio_output_t *aout)
>>
>> block_t *block = aout_FiltersDrain (owner->filters);
>> if (block)
>> + {
>> + block->i_dts = block->i_pts;
>> aout->play(aout, block, vlc_tick_now());
>> + }
>>
>> vlc_clock_Reset(owner->sync.clock);
>> aout_FiltersResetClock(owner->filters);
>
> --
> Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190320/66697a8a/attachment.html>
More information about the vlc-devel
mailing list