Commit d6aae7ea authored by hartman's avatar hartman
Browse files

* vobsub.c : bail if we cannot find the .sub file

parent 4831edd8
...@@ -46,7 +46,7 @@ static void Close( vlc_object_t *p_this ); ...@@ -46,7 +46,7 @@ static void Close( vlc_object_t *p_this );
vlc_module_begin(); vlc_module_begin();
set_description( _("Vobsub subtitles demux") ); set_description( _("Vobsub subtitles demux") );
set_capability( "demux2", 0 ); set_capability( "demux2", 1 );
set_callbacks( Open, Close ); set_callbacks( Open, Close );
...@@ -180,6 +180,9 @@ static int Open ( vlc_object_t *p_this ) ...@@ -180,6 +180,9 @@ static int Open ( vlc_object_t *p_this )
{ {
msg_Err( p_demux, "couldn't open .sub Vobsub file: %s", msg_Err( p_demux, "couldn't open .sub Vobsub file: %s",
psz_vobname ); psz_vobname );
free( p_sys );
free( psz_vobname );
return VLC_EGENERIC;
} }
free( psz_vobname ); free( psz_vobname );
......
Supports Markdown
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