vlc | branch: master | Thomas Guillem <[email protected]> | Thu Jul 26 08:51:54 2018 +0200| [af2c7ff9d51802f013610c52286ffd36cc080fa7] | committer: Thomas Guillem
dec: spu: early release the previous vout when disabled And don't wait to destroy the spu decoder to release the vout. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=af2c7ff9d51802f013610c52286ffd36cc080fa7 --- src/input/decoder.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/input/decoder.c b/src/input/decoder.c index ab2908122b..e40de5b161 100644 --- a/src/input/decoder.c +++ b/src/input/decoder.c @@ -613,6 +613,13 @@ static subpicture_t *spu_new_buffer( decoder_t *p_dec, if( !p_vout ) { msg_Warn( p_dec, "no vout found, dropping subpicture" ); + if( p_owner->p_vout ) + { + vlc_mutex_lock( &p_owner->lock ); + vlc_object_release( p_owner->p_vout ); + p_owner->p_vout = NULL; + vlc_mutex_unlock( &p_owner->lock ); + } return NULL; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
