Commit 890fb755 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

lib: media: always fetch meta via the preparser

libvlc_media_fetch_local = 0, this mean the preparser is always used, therefore
meta should be only fetched from the preparser.
parent b063dca4
......@@ -793,21 +793,12 @@ static int media_parse(libvlc_media_t *media, bool b_async,
input_item_meta_request_option_t parse_scope = META_REQUEST_OPTION_SCOPE_LOCAL;
int ret;
/* Ignore libvlc_media_fetch_local flag since local art will be fetched
* by libvlc_MetadataRequest */
if (parse_flag & libvlc_media_fetch_network)
{
ret = libvlc_ArtRequest(libvlc, item,
META_REQUEST_OPTION_SCOPE_NETWORK,
NULL, NULL);
if (ret != VLC_SUCCESS)
return ret;
}
if (parse_flag & libvlc_media_parse_network)
parse_scope |= META_REQUEST_OPTION_SCOPE_NETWORK;
if (parse_flag & libvlc_media_fetch_local)
parse_scope |= META_REQUEST_OPTION_FETCH_LOCAL;
if (parse_flag & libvlc_media_fetch_network)
parse_scope |= META_REQUEST_OPTION_FETCH_NETWORK;
if (parse_flag & libvlc_media_do_interact)
parse_scope |= META_REQUEST_OPTION_DO_INTERACT;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment