[vlc-devel] commit: Fix crash if inputs fails and there is no sout ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Jun 4 20:16:11 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Jun 4 20:34:13 2008 +0300| [f2852bcf0d7f6d19df6af364d806a42dfc040677]
Fix crash if inputs fails and there is no sout
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f2852bcf0d7f6d19df6af364d806a42dfc040677
---
src/input/input.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index 10743d1..0b1e087 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -400,9 +400,10 @@ int __input_Read( vlc_object_t *p_parent, input_item_t *p_item,
input_thread_t *p_input;
p_input = Create( p_parent, p_item, NULL, false, p_sout );
- if( !p_input && p_sout )
+ if( !p_input )
{
- SoutKeep( p_sout );
+ if( p_sout )
+ SoutKeep( p_sout );
return VLC_EGENERIC;
}
p_input->p->b_sout_keep = b_sout_keep;
More information about the vlc-devel
mailing list