[vlc-devel] [PATCH 1/3] decoder: process the last block when closing

Rafaël Carré rafael.carre at gmail.com
Sun Jul 17 22:17:21 CEST 2011

Le Sun, 17 Jul 2011 14:14:53 +0300,
remi at remlab.net a écrit :

> Not sure DecoderProcess can be called from outside the decoder
> thread...? 

I don't think it matters from which thread it is called because
DecoderProcess() is only 1 iteration and it shouldn't block.

I tested video playback and sout so it should cover all cases and
anyway potential upcoming problems will be very easy to identify.

My first approach was to signal the decoder thread but it didn't
succeed, and I think making the last iteration from decoder deletion is

The call takes between 3 and 5 µs when playing back, the same time in
sout for video, and between 20 and 2000ms in sout for audio (dunno
what's taking "so long")

Rafaël Carré

More information about the vlc-devel mailing list