Commit 4bf5e817 authored by Rémi Duraffort's avatar Rémi Duraffort

Avoid segfault in subtitle demuxer.

parent ea4acee1
...@@ -253,7 +253,7 @@ static int Open ( vlc_object_t *p_this ) ...@@ -253,7 +253,7 @@ static int Open ( vlc_object_t *p_this )
/* Get or probe the type */ /* Get or probe the type */
p_sys->i_type = SUB_TYPE_UNKNOWN; p_sys->i_type = SUB_TYPE_UNKNOWN;
psz_type = var_CreateGetString( p_demux, "sub-type" ); psz_type = var_CreateGetString( p_demux, "sub-type" );
if( *psz_type ) if( psz_type && *psz_type )
{ {
int i; int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment