1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-28 23:09:59 +02:00

decoder: check block_Duplicate() return

This commit is contained in:
Thomas Guillem 2023-10-05 14:36:30 +02:00 committed by Steve Lhomme
parent 7aa694034e
commit da7fc26170

View File

@ -1197,7 +1197,10 @@ static void DecoderPlayCc( vlc_input_decoder_t *p_owner, vlc_frame_t *p_cc,
if( i_bitmap > 1 )
{
block_FifoPut( p_ccowner->p_fifo, block_Duplicate(p_cc) );
block_t *dup = block_Duplicate(p_cc);
if (dup == NULL)
break;
block_FifoPut(p_ccowner->p_fifo, dup);
}
else
{