Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
ec187ec3
Commit
ec187ec3
authored
Oct 12, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xspf: try to produce valid XSPF files (there's still a problem with URI %-encoding)
parent
5af20362
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
modules/demux/playlist/xspf.c
modules/demux/playlist/xspf.c
+3
-1
modules/misc/playlist/xspf.c
modules/misc/playlist/xspf.c
+10
-11
No files found.
modules/demux/playlist/xspf.c
View file @
ec187ec3
...
...
@@ -636,7 +636,9 @@ static vlc_bool_t set_item_info SIMPLE_INTERFACE
}
else
if
(
!
strcmp
(
psz_name
,
"image"
)
)
{
input_item_SetArtURL
(
p_input
,
psz_value
);
const
char
*
psz_uri
=
decode_URI_duplicate
(
psz_value
);
input_item_SetArtURL
(
p_input
,
psz_uri
);
free
(
psz_uri
);
}
return
VLC_TRUE
;
}
...
...
modules/misc/playlist/xspf.c
View file @
ec187ec3
...
...
@@ -84,7 +84,7 @@ int E_(xspf_export_playlist)( vlc_object_t *p_this )
fprintf
(
p_export
->
p_file
,
"
\t
</trackList>
\n
"
);
/* export the tree structure in <extension> */
fprintf
(
p_export
->
p_file
,
"
\t
<extension>
\n
"
);
fprintf
(
p_export
->
p_file
,
"
\t
<extension
application=
\"
http://www.videolan.org/vlc/playlist/0
\"
>
\n
"
);
i_count
=
0
;
for
(
i
=
0
;
i
<
p_node
->
i_children
;
i
++
)
{
...
...
@@ -191,12 +191,11 @@ static void xspf_export_item( playlist_item_t *p_item, FILE *p_file,
/* -> the track number */
psz
=
input_item_GetTrackNum
(
p_item
->
p_input
);
if
(
psz
==
NULL
)
psz
=
strdup
(
""
);
if
(
psz
)
if
(
psz
&&
*
psz
)
{
if
(
*
psz
)
{
fprintf
(
p_file
,
"
\t\t\t
<trackNum>%i</trackNum>
\n
"
,
atoi
(
psz
)
);
}
int
i_tracknum
=
atoi
(
psz
);
if
(
i_tracknum
>
0
)
fprintf
(
p_file
,
"
\t\t\t
<trackNum>%i</trackNum>
\n
"
,
i_tracknum
);
}
free
(
psz
);
...
...
@@ -213,13 +212,13 @@ static void xspf_export_item( playlist_item_t *p_item, FILE *p_file,
psz
=
input_item_GetArtURL
(
p_item
->
p_input
);
if
(
psz
==
NULL
)
psz
=
strdup
(
""
);
psz_temp
=
convert_xml_special_chars
(
psz
);
free
(
psz
);
if
(
!
EMPTY_STR
(
psz_temp
)
)
if
(
!
EMPTY_STR
(
psz
)
)
{
fprintf
(
p_file
,
"
\t\t\t
<image>%s</image>
\n
"
,
psz_temp
);
psz_uri
=
assertUTF8URI
(
psz
);
fprintf
(
p_file
,
"
\t\t\t
<image>%s</image>
\n
"
,
psz_uri
);
free
(
psz_uri
);
}
free
(
psz
_temp
);
free
(
psz
);
xspfexportitem_end:
/* -> the duration */
...
...
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