Commit 4fe75d52 authored by Thomas Guillem's avatar Thomas Guillem

decoder: fix decoder drained when using a packetizer

The packetizer set the *pp_block to NULL, therefore p_block was NULL too.

This fixes a regression from 7ada6eae

Closes #16128
parent 16cd51ee
...@@ -1036,7 +1036,7 @@ static void DecoderProcessVideo( decoder_t *p_dec, block_t *p_block ) ...@@ -1036,7 +1036,7 @@ static void DecoderProcessVideo( decoder_t *p_dec, block_t *p_block )
} }
} }
/* Drain the decoder after the packetizer is drained */ /* Drain the decoder after the packetizer is drained */
if( !p_block ) if( !pp_block )
DecoderDecodeVideo( p_dec, NULL ); DecoderDecodeVideo( p_dec, NULL );
} }
else else
...@@ -1217,7 +1217,7 @@ static void DecoderProcessAudio( decoder_t *p_dec, block_t *p_block ) ...@@ -1217,7 +1217,7 @@ static void DecoderProcessAudio( decoder_t *p_dec, block_t *p_block )
} }
} }
/* Drain the decoder after the packetizer is drained */ /* Drain the decoder after the packetizer is drained */
if( !p_block ) if( !pp_block )
DecoderDecodeAudio( p_dec, NULL ); DecoderDecodeAudio( p_dec, NULL );
} }
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment