[vlc-devel] [PATCH 1/3] decoder: process the last block when closing
Laurent Aimar
fenrir at elivagar.org
Mon Jul 18 20:28:13 CEST 2011
On Mon, Jul 18, 2011 at 01:53:13PM +0200, Laurent Aimar wrote:
> I don't think you can avoid changing/extending decoders/es_out/input
> communications to do it cleanly.
I think what could be done is:
- add a new input_DecoderEos() function that tells the decoder that it won't
receive anymore data. It will need to be called from es_out, and I think
it can simply create a block_t with a special flag (a bit like
BLOCK_FLAG_CORE_FLUSH.
- handle this special block in DecoderProcess().
Then, for playback, to be complete aout_DecIsEmpty() would need to be
implemented...
Regards,
--
fenrir
More information about the vlc-devel
mailing list