1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-16 16:02:54 +02:00

decoder: don't loop if there is no CCs

This commit is contained in:
Thomas Guillem 2023-10-27 09:53:35 +02:00 committed by Steve Lhomme
parent e9dacbf735
commit 4946185a11

View File

@ -1231,6 +1231,9 @@ static void DecoderPlayCcLocked( vlc_input_decoder_t *p_owner, vlc_frame_t *p_cc
p_owner->cc.desc_changed = true;
}
if (p_owner->cc.count == 0)
goto end;
size_t cc_idx = 0;
vlc_input_decoder_t *it;
@ -1253,6 +1256,7 @@ static void DecoderPlayCcLocked( vlc_input_decoder_t *p_owner, vlc_frame_t *p_cc
}
}
end:
vlc_mutex_unlock(&p_owner->subdecs.lock);
if (p_cc != NULL) /* can have bitmap set but no created decs */