[vlc-commits] playlist/fetcher: do not ignore metadata scope when downloading art
Filip Roséen
git at videolan.org
Thu Dec 8 23:36:46 CET 2016
vlc/vlc-2.2 | branch: master | Filip Roséen <filip at atch.se> | Thu Dec 8 11:14:20 2016 +0100| [31690f1ce00562b819bd0f775a0e55045cd25e6d] | 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>
(cherry picked from commit 1dc4df30ded66e74a01c1df742f1dbe3e1338d1b)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=31690f1ce00562b819bd0f775a0e55045cd25e6d
---
src/playlist/fetcher.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/playlist/fetcher.c b/src/playlist/fetcher.c
index 9331549..bbb644a 100644
--- a/src/playlist/fetcher.c
+++ b/src/playlist/fetcher.c
@@ -365,6 +365,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 = stream_UrlNew( p_fetcher->object, psz_arturl );
if( !p_stream )
goto error;
More information about the vlc-commits
mailing list