[vlc-commits] playlist: item: playlist_Preparse: use vlc_MetadataRequest
Filip Roséen
git at videolan.org
Wed Jul 25 11:35:13 CEST 2018
vlc | branch: master | Filip Roséen <filip at atch.se> | Wed Jul 25 04:06:40 2018 +0200| [d7d9f8e4b61f4ab30bc2a3cefc64b09b8236a2a4] | committer: Thomas Guillem
playlist: item: playlist_Preparse: use vlc_MetadataRequest
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
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d7d9f8e4b61f4ab30bc2a3cefc64b09b8236a2a4
---
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 );
}
More information about the vlc-commits
mailing list