[vlc-commits] playlist/fetcher: do not ignore metadata scope when downloading art

Filip Roséen git at videolan.org
Thu Dec 8 23:34:03 CET 2016


vlc | branch: master | Filip Roséen <filip at atch.se> | Thu Dec  8 11:14:20 2016 +0100| [1dc4df30ded66e74a01c1df742f1dbe3e1338d1b] | committer: Jean-Baptiste Kempf

playlist/fetcher: do not ignore metadata scope when downloading art

Previously the implementation would unconditionally download art,
these changes make sure that we respect the scope of the fetcher being
used.

fixes #17760

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 src/playlist/fetcher.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/playlist/fetcher.c b/src/playlist/fetcher.c
index 1fdb64c..b7a1968 100644
--- a/src/playlist/fetcher.c
+++ b/src/playlist/fetcher.c
@@ -377,6 +377,9 @@ static int DownloadArt( playlist_fetcher_t *p_fetcher, input_item_t *p_item )
         goto error;
     }
 
+    if( !( p_fetcher->e_scope & FETCHER_SCOPE_NETWORK ) )
+        goto error;
+
     stream_t *p_stream = vlc_stream_NewURL( p_fetcher->object, psz_arturl );
     if( !p_stream )
         goto error;



More information about the vlc-commits mailing list