[vlc-commits] [Git][videolan/vlc][master] decoder: always restore the vout state on restart
Rémi Denis-Courmont (@Courmisch)
gitlab at videolan.org
Sun Nov 9 11:34:53 UTC 2025
Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC
Commits:
bcc827cd by Thomas Guillem at 2025-11-09T13:18:52+02:00
decoder: always restore the vout state on restart
The vout state (pause, rate, delay) was only restored when the vout was
freshly started.
For example, this fixes the vout being resumed when seeking while paused
when using VAAPI (without the keep-vctx-optimization)
- - - - -
1 changed file:
- src/input/decoder.c
Changes:
=====================================
src/input/decoder.c
=====================================
@@ -668,15 +668,11 @@ static int ModuleThread_UpdateVideoFormat( decoder_t *p_dec, vlc_video_context *
vlc_fifo_Lock(p_owner->p_fifo);
p_owner->vout_started = true;
- if (vout_state == INPUT_RESOURCE_VOUT_STARTED)
- {
- Decoder_UpdateOutState( p_owner );
- vlc_fifo_Unlock(p_owner->p_fifo);
+ Decoder_UpdateOutState( p_owner );
+ vlc_fifo_Unlock(p_owner->p_fifo);
+ if (vout_state == INPUT_RESOURCE_VOUT_STARTED)
decoder_Notify(p_owner, on_vout_started, p_vout, p_owner->vout_order);
- }
- else
- vlc_fifo_Unlock(p_owner->p_fifo);
return 0;
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bcc827cd66c3ccdf460de9735bbf0947ad6acc21
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bcc827cd66c3ccdf460de9735bbf0947ad6acc21
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list