Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
fdbda6fe
Commit
fdbda6fe
authored
Jul 21, 2010
by
Rémi Duraffort
Committed by
Rémi Denis-Courmont
Jul 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m3u: use the album art provided by jamendo along with the m3u files.
parent
d4c7ef27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
modules/demux/playlist/m3u.c
modules/demux/playlist/m3u.c
+13
-0
No files found.
modules/demux/playlist/m3u.c
View file @
fdbda6fe
...
...
@@ -136,6 +136,7 @@ static int Demux( demux_t *p_demux )
char
*
psz_line
;
char
*
psz_name
=
NULL
;
char
*
psz_artist
=
NULL
;
char
*
psz_album_art
=
NULL
;
int
i_parsed_duration
=
0
;
mtime_t
i_duration
=
-
1
;
const
char
**
ppsz_options
=
NULL
;
...
...
@@ -194,6 +195,14 @@ static int Demux( demux_t *p_demux )
INSERT_ELEM
(
ppsz_options
,
i_options
,
i_options
,
psz_option
);
}
/* Special case for jamendo which provide the albumart */
else
if
(
!
strncasecmp
(
psz_parse
,
"EXTALBUMARTURL:"
,
sizeof
(
"EXTALBUMARTURL:"
)
-
1
)
)
{
psz_parse
+=
sizeof
(
"EXTALBUMARTURL:"
)
-
1
;
free
(
psz_album_art
);
psz_album_art
=
pf_dup
(
psz_parse
);
}
}
else
if
(
!
strncasecmp
(
psz_parse
,
"RTSPtext"
,
sizeof
(
"RTSPtext"
)
-
1
)
)
{
...
...
@@ -226,6 +235,8 @@ static int Demux( demux_t *p_demux )
if
(
psz_artist
&&
*
psz_artist
)
input_item_SetArtist
(
p_input
,
psz_artist
);
if
(
psz_name
)
input_item_SetTitle
(
p_input
,
psz_name
);
if
(
!
EMPTY_STR
(
psz_album_art
)
)
input_item_SetArtURL
(
p_input
,
psz_album_art
);
input_item_node_AppendItem
(
p_subitems
,
p_input
);
vlc_gc_decref
(
p_input
);
...
...
@@ -248,6 +259,8 @@ static int Demux( demux_t *p_demux )
psz_name
=
NULL
;
free
(
psz_artist
);
psz_artist
=
NULL
;
free
(
psz_album_art
);
psz_album_art
=
NULL
;
i_parsed_duration
=
0
;
i_duration
=
-
1
;
...
...
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