[vlc-devel] commit: input: Make sure priv->p_sout won't be reused when freed. (Pierre d 'Herbemont )
git version control
git at videolan.org
Tue Apr 22 16:25:20 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Apr 22 16:26:05 2008 +0200| [7b1b29e00fc2695dfa93a5dc05d6059a10a742fb]
input: Make sure priv->p_sout won't be reused when freed.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7b1b29e00fc2695dfa93a5dc05d6059a10a742fb
---
src/input/input.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index ad162a9..f42fdbb 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -328,7 +328,10 @@ static void Destructor( input_thread_t * p_input )
if( priv->b_sout_keep )
SoutKeep( priv->p_sout );
else
+ {
sout_DeleteInstance( priv->p_sout );
+ priv->p_sout = NULL;
+ }
}
vlc_gc_decref( p_input->p->input.p_item );
More information about the vlc-devel
mailing list