]> git.sesse.net Git - vlc/commitdiff
* mp4: with ref .mov, don't forget to add the access.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 1 Aug 2004 15:51:49 +0000 (15:51 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 1 Aug 2004 15:51:49 +0000 (15:51 +0000)
modules/demux/mp4/mp4.c

index cb2955cbaafc2f3b2b97476455887db46a2df874..00f670f4b423cbf926d575dd9e2d92a3762023be 100644 (file)
@@ -366,15 +366,16 @@ static int Open( vlc_object_t * p_this )
                     else
                     {
                         /* 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, '/' );
 
                         if( end )
                         {
                             int i_len = end + 1 - p_demux->psz_path;
 
-                            strncpy( psz_absolute, p_demux->psz_path, i_len);
-                            psz_absolute[i_len] = '\0';
+                            strcpy( psz_absolute, p_demux->psz_access );
+                            strcat( psz_absolute, "://" );
+                            strncat( psz_absolute, p_demux->psz_path, i_len);
                         }
                         else
                         {