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

remi at remlab.net remi at remlab.net
Sun Jul 17 13:14:53 CEST 2011


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


16/07/11 05:30, Rafaël Carré a écrit :

There might be a buffer still stored in packetizer buffers

refs: #3178
---
src/input/decoder.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index bf09978..fb274e0 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -352,6 +352,10 @@ void input_DecoderDelete( decoder_t *p_dec )

vlc_cancel( p_owner->thread );

+ /* process last packet */
+ if( !p_dec->b_error )
+ DecoderProcess( p_dec, NULL );
+
/* Make sure we aren't paused/buffering/waiting/decoding anymore */
vlc_mutex_lock( &p_owner->lock );
const bool b_was_paused = p_owner->b_paused;
-- 
1.7.4.1


_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
http://mailman.videolan.org/listinfo/vlc-devel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110717/2c97d02c/attachment.html>


More information about the vlc-devel mailing list