[vlc-devel] [PATCH 1/3] decoder: process the last block when closing
Rafaël Carré
rafael.carre at gmail.com
Sat Jul 16 04:30:08 CEST 2011
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
More information about the vlc-devel
mailing list