[vlc-commits] media_tree: Ensure preparsing will be able to list subitems

Hugo Beauzée-Luyssen git at videolan.org
Mon Feb 11 16:05:13 CET 2019


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Jan 30 11:01:52 2019 +0100| [e866ca9ccb2a676512f37e841a7e57978ee4cee2] | committer: Hugo Beauzée-Luyssen

media_tree: Ensure preparsing will be able to list subitems

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

 src/media_source/media_tree.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/media_source/media_tree.c b/src/media_source/media_tree.c
index 4c91b7eaf7..4fa79c1716 100644
--- a/src/media_source/media_tree.c
+++ b/src/media_source/media_tree.c
@@ -328,7 +328,9 @@ vlc_media_tree_Preparse(vlc_media_tree_t *tree, libvlc_int_t *libvlc,
     VLC_UNUSED(media);
     VLC_UNUSED(input_preparser_callbacks);
 #else
-    vlc_MetadataRequest(libvlc, media, META_REQUEST_OPTION_NONE,
+    media->i_preparse_depth = 1;
+    vlc_MetadataRequest(libvlc, media, META_REQUEST_OPTION_SCOPE_LOCAL |
+                        META_REQUEST_OPTION_SCOPE_NETWORK,
                         &input_preparser_callbacks, tree, -1, NULL);
 #endif
 }



More information about the vlc-commits mailing list