Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
389c19e1
Commit
389c19e1
authored
Dec 30, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #1244
parent
7b9e1799
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
modules/demux/playlist/xspf.c
modules/demux/playlist/xspf.c
+16
-6
No files found.
modules/demux/playlist/xspf.c
View file @
389c19e1
...
@@ -537,19 +537,29 @@ static vlc_bool_t parse_track_node COMPLEX_INTERFACE
...
@@ -537,19 +537,29 @@ static vlc_bool_t parse_track_node COMPLEX_INTERFACE
if
(
psz_uri
)
if
(
psz_uri
)
{
{
if
(
p_demux
->
p_sys
->
psz_base
&&
if
(
(
p_demux
->
p_sys
->
psz_base
||
strrchr
(
p_demux
->
psz_path
,
DIR_SEP_CHAR
)
)
&&
!
strstr
(
psz_uri
,
"://"
)
)
!
strstr
(
psz_uri
,
"://"
)
)
{
{
char
*
psz_tmp
=
malloc
(
char
*
psz_baseref
=
p_demux
->
p_sys
->
psz_base
;
strlen
(
p_demux
->
p_sys
->
psz_base
)
+
size_t
i_baselen
;
strlen
(
psz_uri
)
+
1
);
if
(
psz_baseref
)
i_baselen
=
strlen
(
psz_baseref
);
else
{
psz_baseref
=
p_demux
->
psz_path
;
i_baselen
=
strrchr
(
psz_baseref
,
DIR_SEP_CHAR
)
-
psz_baseref
+
1
;
}
char
*
psz_tmp
=
malloc
(
i_baselen
+
strlen
(
psz_uri
)
+
1
);
if
(
!
psz_tmp
)
if
(
!
psz_tmp
)
{
{
msg_Err
(
p_demux
,
"out of memory"
);
msg_Err
(
p_demux
,
"out of memory"
);
return
VLC_FALSE
;
return
VLC_FALSE
;
}
}
s
printf
(
psz_tmp
,
"%s%s"
,
s
trncpy
(
psz_tmp
,
psz_baseref
,
i_baselen
);
p_demux
->
p_sys
->
psz_base
,
psz_uri
);
strcpy
(
psz_tmp
+
i_baselen
,
psz_uri
);
free
(
psz_uri
);
free
(
psz_uri
);
psz_uri
=
psz_tmp
;
psz_uri
=
psz_tmp
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment