[vlc-commits] lib: media: always fetch meta via the preparser

Thomas Guillem git at videolan.org
Mon Aug 26 09:29:45 CEST 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Aug 22 14:13:53 2019 +0200| [890fb755f4b96258425830c6ae4af94af1c76764] | committer: Thomas Guillem

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=890fb755f4b96258425830c6ae4af94af1c76764
---

 lib/media.c | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/lib/media.c b/lib/media.c
index b190d0e268..a1c6d4e24a 100644
--- a/lib/media.c
+++ b/lib/media.c
@@ -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;
 



More information about the vlc-commits mailing list