[vlc-commits] [Git][videolan/vlc][master] adummy: check flush state before moving the date on resume
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Mon Oct 26 09:48:41 UTC 2026
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
565836b2 by Alexandre Janniaux at 2026-10-26T10:32:00+01:00
adummy: check flush state before moving the date on resume
The adummy audio_output is simulating a real output and thus also handle
pause and flush like it would be done in the core. When pausing, the
current time is saved so that we can know the offset when unpausing.
However, flush can also happen while paused, leading to the first play
date and paused date to be reset to VLC_TICK_INVALID. In that case, we
don't have any stitching to do since we must register the first play
date again and we should not try to change the first_play_date.
Currently, this was leading to first_play_date being defined on resume
instead of play with an incorrect value.
- - - - -
1 changed file:
- modules/audio_output/adummy.c
Changes:
=====================================
modules/audio_output/adummy.c
=====================================
@@ -82,7 +82,9 @@ static void Pause(audio_output_t *aout, bool paused, vlc_tick_t date)
sys->paused_date = date;
else
{
- sys->first_play_date -= sys->paused_date - date;
+ if (sys->first_play_date != VLC_TICK_INVALID
+ && sys->paused_date != VLC_TICK_INVALID)
+ sys->first_play_date -= sys->paused_date - date;
sys->paused_date = VLC_TICK_INVALID;
}
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/565836b2bd7a2789c7faf00bd1cc7b43945cb8a3
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/565836b2bd7a2789c7faf00bd1cc7b43945cb8a3
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list