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

Filip Roséen filip at atch.se
Thu Dec 8 11:14:20 CET 2016


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

fixes #17760
---
 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;
-- 
2.10.2



More information about the vlc-devel mailing list