[vlc-devel] [PATCH 3/3] decoder: interrupt the input sout when deleted
Thomas Guillem
thomas at gllm.fr
Mon Feb 12 18:13:26 CET 2018
---
src/input/decoder.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index 8ec8ee4131..423ee8c554 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -2019,6 +2019,8 @@ void input_DecoderDelete( decoder_t *p_dec )
* worker threads (if any) and the decoder thread to terminate. */
if( p_owner->p_vout != NULL )
vout_Cancel( p_owner->p_vout, true );
+ else if ( p_owner->p_sout_input != NULL )
+ sout_InputInterrupt( p_owner->p_sout_input );
vlc_mutex_unlock( &p_owner->lock );
vlc_join( p_owner->thread, NULL );
--
2.11.0
More information about the vlc-devel
mailing list