Commit f41dff04 authored by Laurent Aimar's avatar Laurent Aimar

* mp4: with ref .mov, don't forget to add the access.

parent af1086d0
...@@ -366,15 +366,16 @@ static int Open( vlc_object_t * p_this ) ...@@ -366,15 +366,16 @@ static int Open( vlc_object_t * p_this )
else else
{ {
/* msg dbg relative ? */ /* msg dbg relative ? */
char *psz_absolute = alloca( strlen( p_demux->psz_path ) + strlen( psz_ref ) + 1); char *psz_absolute = alloca( strlen( p_demux->psz_access ) + 3 + strlen( p_demux->psz_path ) + strlen( psz_ref ) + 1);
char *end = strrchr( p_demux->psz_path, '/' ); char *end = strrchr( p_demux->psz_path, '/' );
if( end ) if( end )
{ {
int i_len = end + 1 - p_demux->psz_path; int i_len = end + 1 - p_demux->psz_path;
strncpy( psz_absolute, p_demux->psz_path, i_len); strcpy( psz_absolute, p_demux->psz_access );
psz_absolute[i_len] = '\0'; strcat( psz_absolute, "://" );
strncat( psz_absolute, p_demux->psz_path, i_len);
} }
else else
{ {
......
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