[vlc-commits] [Git][videolan/vlc][master] codec: videotoolbox: wait for allocatable slot only before enqueueing
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Nov 28 11:01:36 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
d37896dd by François Cartegnie at 2023-11-28T10:14:05+00:00
codec: videotoolbox: wait for allocatable slot only before enqueueing
Drain has already reserved slots
- - - - -
1 changed file:
- modules/codec/videotoolbox/decoder.c
Changes:
=====================================
modules/codec/videotoolbox/decoder.c
=====================================
@@ -1984,8 +1984,6 @@ static int DecodeBlock(decoder_t *p_dec, block_t *p_block)
{
decoder_sys_t *p_sys = p_dec->p_sys;
- pic_pacer_WaitAllocatableSlot(p_sys->pic_pacer);
-
if (p_block == NULL)
{
Drain(p_dec, false);
@@ -2163,6 +2161,8 @@ static int DecodeBlock(decoder_t *p_dec, block_t *p_block)
goto skip;
}
+ pic_pacer_WaitAllocatableSlot(p_sys->pic_pacer);
+
VTDecodeInfoFlags flagOut;
VTDecodeFrameFlags decoderFlags = kVTDecodeFrame_EnableAsynchronousDecompression;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d37896dd17f26378cc669f811f0ae3286785d433
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d37896dd17f26378cc669f811f0ae3286785d433
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