Commit 7ada6eae authored by Thomas Guillem's avatar Thomas Guillem

decoder: also drain the decoder when draining the packetizer

When p_block was NULL, DecoderThread was draining its packetizer or its
decoder, but was not draining both (when a packetizer was used).
parent 6927b44a
......@@ -987,6 +987,9 @@ static void DecoderProcessVideo( decoder_t *p_dec, block_t *p_block )
p_packetized_block = p_next;
}
}
/* Drain the decoder after the packetizer is drained */
if( !p_block )
DecoderDecodeVideo( p_dec, NULL );
}
else
{
......@@ -1127,6 +1130,9 @@ static void DecoderProcessAudio( decoder_t *p_dec, block_t *p_block )
p_packetized_block = p_next;
}
}
/* Drain the decoder after the packetizer is drained */
if( !p_block )
DecoderDecodeAudio( p_dec, NULL );
}
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