[vlc-devel] commit: Avoid segfault in subtitle demuxer. ( Rémi Duraffort )
git version control
git at videolan.org
Wed Jul 2 20:13:39 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Jun 29 10:05:40 2008 +0200| [4bf5e817d35569492c6c3ca068f277d0ae49702f]
Avoid segfault in subtitle demuxer.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4bf5e817d35569492c6c3ca068f277d0ae49702f
---
modules/demux/subtitle.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/demux/subtitle.c b/modules/demux/subtitle.c
index 1494086..f7b9ae3 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -253,7 +253,7 @@ static int Open ( vlc_object_t *p_this )
/* Get or probe the type */
p_sys->i_type = SUB_TYPE_UNKNOWN;
psz_type = var_CreateGetString( p_demux, "sub-type" );
- if( *psz_type )
+ if( psz_type && *psz_type )
{
int i;
More information about the vlc-devel
mailing list