Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
58bd68a6
Commit
58bd68a6
authored
Feb 10, 2008
by
Pierre d'Herbemont
Browse files
control/media_descriptor.c: Ask for artwork only when needed.
parent
566b8b28
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/control/media_descriptor.c
View file @
58bd68a6
...
...
@@ -217,10 +217,6 @@ static void preparse_if_needed( libvlc_media_descriptor_t *p_md )
playlist_PreparseEnqueue
(
p_md
->
p_libvlc_instance
->
p_libvlc_int
->
p_playlist
,
p_md
->
p_input_item
);
playlist_AskForArtEnqueue
(
p_md
->
p_libvlc_instance
->
p_libvlc_int
->
p_playlist
,
p_md
->
p_input_item
);
p_md
->
b_preparsed
=
VLC_TRUE
;
}
}
...
...
@@ -445,6 +441,13 @@ char * libvlc_media_descriptor_get_meta( libvlc_media_descriptor_t *p_md,
psz_meta
=
input_item_GetMeta
(
p_md
->
p_input_item
,
libvlc_to_vlc_meta
[
e_meta
]
);
if
(
e_meta
==
libvlc_meta_ArtworkURL
&&
!
psz_meta
)
{
playlist_AskForArtEnqueue
(
p_md
->
p_libvlc_instance
->
p_libvlc_int
->
p_playlist
,
p_md
->
p_input_item
);
}
/* Should be integrated in core */
if
(
!
psz_meta
&&
e_meta
==
libvlc_meta_Title
&&
p_md
->
p_input_item
->
psz_name
)
...
...
Write
Preview
Supports
Markdown
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