[vlc-devel] [PATCH 3/3] playlist: item: playlist_Preparse: use vlc_MetadataRequest

Filip Roséen filip at atch.se
Wed Jul 25 04:06:40 CEST 2018


As the functionality provided by the externally accessible
libvlc_MetadataRequest is not satisfactory for the usage in
playlist_Preparse, the call has been replaced by an invocation of
vlc_MetadataRequest (that will not result in indefinite recursion).

fixes: #18236
refs: #20865
---
 src/playlist/item.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/playlist/item.c b/src/playlist/item.c
index b8deef464c..d365ca1e18 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -35,6 +35,7 @@
 #include <vlc_playlist.h>
 #include <vlc_rand.h>
 #include "playlist_internal.h"
+#include "libvlc.h"
 
 static void playlist_Preparse( playlist_t *, playlist_item_t * );
 
@@ -743,7 +744,7 @@ static void playlist_Preparse( playlist_t *p_playlist,
 
     if( sys->b_preparse && !input_item_IsPreparsed( input )
      && (EMPTY_STR(psz_artist) || EMPTY_STR(psz_album)) )
-        libvlc_MetadataRequest( p_playlist->obj.libvlc, input, 0, -1, p_item );
+        vlc_MetadataRequest( p_playlist->obj.libvlc, input, 0, -1, p_item );
     free( psz_artist );
     free( psz_album );
 }
-- 
2.18.0


More information about the vlc-devel mailing list