Commit 7815fcbd authored by hartman's avatar hartman

* make vobsubs downloadable from http/ftp etc. closes #567

 - NOTE: this will not work on user/password protected locations.
parent cdc77733
......@@ -179,9 +179,9 @@ static int Open ( vlc_object_t *p_this )
}
}
psz_vobname = strdup( p_demux->psz_path );
asprintf( &psz_vobname, "%s://%s", p_demux->psz_access, p_demux->psz_path );
i_len = strlen( psz_vobname );
memcpy( psz_vobname + i_len - 4, ".sub", 4 );
if( i_len >= 4 ) memcpy( psz_vobname + i_len - 4, ".sub", 4 );
/* open file */
p_sys->p_vobsub_stream = stream_UrlNew( p_demux, psz_vobname );
......
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